瀏覽代碼

Merge branch 'LAO_MO' into online

mo 4 年之前
父節點
當前提交
aa47998eba
共有 1 個文件被更改,包括 3 次插入2 次删除
  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()