Browse Source

Merge branch 'LAO_MO' into online

mo 4 years ago
parent
commit
aa47998eba
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/main.js

+ 3 - 2
src/main.js

@@ -43,8 +43,9 @@ class DonMessage {
   }
 }
 
-// ... 
-
+// 修改默认属性 
+ElementUI.Dialog.props.closeOnClickModal.default = false;
+ElementUI.Dialog.props.destroyOnClose.default = true;
 Vue.use(ElementUI)
 // 命名根据需要,DonMessage只是在文章中使用
 Vue.prototype.$message = new DonMessage()