From bdbd73863d4b9168152774d7aeb5b877efe4441f Mon Sep 17 00:00:00 2001 From: jlzhou <12020042@qq.com> Date: Wed, 10 May 2023 17:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=85=B3=E9=97=AD=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=8E=A9=E7=9B=96=E5=B1=82=E5=85=B3=E9=97=AD,?= =?UTF-8?q?=E5=B9=B6=E8=AE=BE=E7=BD=AE=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=90=8E=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Settings/index.vue | 5 ++++- src/main.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index 3360959..2cdf53a 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -162,7 +162,10 @@ function saveSetting() { "theme": storeSettings.value.theme }; localStorage.setItem("layout-setting", JSON.stringify(layoutSetting)); - setTimeout(proxy.$modal.closeLoading(), 1000) + setTimeout(()=>{ + proxy.$modal.closeLoading(); + showSettings.value=false; + }, 1000) } function resetSetting() { proxy.$modal.loading("正在清除设置缓存并刷新,请稍候..."); diff --git a/src/main.js b/src/main.js index 65a19e1..517056a 100644 --- a/src/main.js +++ b/src/main.js @@ -86,6 +86,6 @@ app.use(ElementPlus, { }) // 修改 el-dialog 默认点击遮照为不关闭 -// app._context.components.ElDialog.props.closeOnClickModal.default = false +app._context.components.ElDialog.props.closeOnClickModal.default = false app.mount('#app')