浏览代码

toast的持续时间延长一点,免得来不及阅读完毕

任一存 2 年之前
父节点
当前提交
38267bda14
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      packages/qjkankan-editor/src/mixins/index.js

+ 6 - 5
packages/qjkankan-editor/src/mixins/index.js

@@ -50,35 +50,36 @@ Vue.prototype.$STRSTATUS = STRSTATUS;
 Vue.prototype.$msg = (data)=>{
   return Message({
     offset: 85,
-    ...data
+    ...data,
+    duration: 2000
   });
 }
 Vue.prototype.$msg.success = (string)=>{
   return Message.success({
     offset: 85,
     message: string,
-    duration: 1000
+    duration: 2000
   });
 }
 Vue.prototype.$msg.warning = (string)=>{
   return Message.warning({
     offset: 85,
     message: string,
-    duration: 1000
+    duration: 2000
   });
 }
 Vue.prototype.$msg.message = (string)=>{
   return Message.info({
     offset: 85,
     message: string,
-    duration: 1000
+    duration: 2000
   });
 }
 Vue.prototype.$msg.error = (string)=>{
   return Message.error({
     offset: 85,
     message: string,
-    duration: 1000
+    duration: 2000
   });
 }