mo преди 4 години
родител
ревизия
9f2857535a
променени са 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()