Procházet zdrojové kódy

菜单路由处理

ZaiZai před 1 rokem
rodič
revize
90f14ef10a
1 změnil soubory, kde provedl 6 přidání a 5 odebrání
  1. 6 5
      src/views/project/gist/list.vue

+ 6 - 5
src/views/project/gist/list.vue

@@ -25,7 +25,7 @@
         <hc-dialog v-model="isImportShow" widths="24rem" title="项目数据导入" :footer="false" @close="modalImportClose">
             <hc-form-upload
                 v-model="importFile" class="hc-form-drop-upload"
-                :options="{ num: 1, type: 'list', drop: true, isSuccess: true }"
+                :options="{ num: 1, type: 'list', drop: true }"
                 :upload="{ options: uploadOptions }" @success="uploadSuccess"
             />
             <div class="hc-flex mt-5">
@@ -165,9 +165,10 @@ const modalImportClose = () => {
 }
 
 //上传完成
-const uploadSuccess = (_, resolve) => {
-    resolve('')
-    getTableData()
-    modalImportClose()
+const uploadSuccess = () => {
+    setTimeout(() => {
+        getTableData()
+        modalImportClose()
+    }, 1000)
 }
 </script>