reaper %!s(int64=4) %!d(string=hai) anos
pai
achega
faed41d696
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/components/knowledgeExtra/AddDevKnow.vue

+ 10 - 0
src/components/knowledgeExtra/AddDevKnow.vue

@@ -359,6 +359,12 @@ export default {
     }
   },
   created: function () {
+    const loading = this.$loading({
+      lock: true,
+      text: "Loading",
+      spinner: "el-icon-loading",
+      background: "rgba(0, 0, 0, 0.7)"
+    });
     const { isEdit, data, isCopy } = this.$route.params;
     if (isEdit || isCopy) {
       this.showType = data.type; // 编辑页确认显示类型
@@ -432,8 +438,12 @@ export default {
               }
             }
           }
+          setTimeout(() => {
+            loading.close();
+          }, 200);
         })
         .catch((error) => {
+          loading.close();
           if (error.code === "900010001") {
             return false;
           }