소스 검색

0909 11:07

111
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()