From aa5d5abdf5585ebc91d74ea65fd0777352ce70dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B0=8F=E7=8E=8B=E5=AD=90?= Date: Thu, 7 Mar 2024 10:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20el-dialog=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=82=B9=E5=87=BB=E9=81=AE=E7=85=A7=E4=B8=BA=E4=B8=8D?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 4 ++++ src/views/system/oss/index.vue | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main.ts b/src/main.ts index f40059e..29a5ee5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -32,6 +32,10 @@ VXETable.config({ zIndex: 999999 }); +// 修改 el-dialog 默认点击遮照为不关闭 +import { ElDialog } from 'element-plus'; +ElDialog.props.closeOnClickModal.default = false; + const app = createApp(App); app.use(ElementIcons); diff --git a/src/views/system/oss/index.vue b/src/views/system/oss/index.vue index 3ef8bd0..e14d6e6 100644 --- a/src/views/system/oss/index.vue +++ b/src/views/system/oss/index.vue @@ -5,16 +5,13 @@ - + - + - +