dengrui 9 miesięcy temu
rodzic
commit
7f7a149ec0
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/views/pro-operation/inspect/index.vue

+ 3 - 3
src/views/pro-operation/inspect/index.vue

@@ -250,12 +250,12 @@ const editCheckAsync = async () => {
 const fileName = ref("");
 provide("fileName", fileName);
 const submit = async () => {
-  check().then(() => {
+  check().then(async () => {
     if (editType.value == "add") {
-      addCheckAsync();
+      await addCheckAsync();
       reset();
     } else {
-      editCheckAsync();
+      await editCheckAsync();
       reset();
     }
   });