From cb7828e4f4acfc7077c31605349d6e0358915c6d Mon Sep 17 00:00:00 2001 From: taojinlong Date: Sun, 26 Jun 2022 16:26:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=20dialog=20=E7=9A=84?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/main.js b/frontend/src/main.js index de2901acca..ea1d24c0ee 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -72,6 +72,8 @@ if (process.env.NODE_ENV === 'production') { // set ElementUI lang to EN // Vue.use(ElementUI, { locale }) // 如果想要中文版 element-ui,按如下方式声明 +ElementUI.Dialog.props.closeOnClickModal.default = false +ElementUI.Dialog.props.closeOnPressEscape.default = false Vue.use(ElementUI, { size: Cookies.get('size') || 'medium', // set element-ui default size i18n: (key, value) => i18n.t(key, value)