lsc 6 月之前
父节点
当前提交
c0cac89936

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.c594480c92b51db0d5a42dab54bdd777.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.32e54c5cbc322d18a05c.js></script><script type=text/javascript src=./static/js/app.cd9805028bd74fbf3a9a.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.d801d28409391c255ccb1ad8ca1f274a.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.32e54c5cbc322d18a05c.js></script><script type=text/javascript src=./static/js/app.fa90e7492492d97ea553.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.d801d28409391c255ccb1ad8ca1f274a.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.d801d28409391c255ccb1ad8ca1f274a.css.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.cd9805028bd74fbf3a9a.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.cd9805028bd74fbf3a9a.js.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.fa90e7492492d97ea553.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.fa90e7492492d97ea553.js.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 11 - 7
src/components/pages/knowledge/fileBox.vue

@@ -535,7 +535,7 @@ export default {
           this.proVisible = false;
           this.$message.success("操作完成");
           this.getData(); // 在上传完所有文件后再调用getData
-        }, 2000);
+        }, 3000);
       };
 
       await uploadFiles(event.target.files);
@@ -557,11 +557,13 @@ export default {
             message: msg,
             type: status == 'success' ? status : 'error'
           })
-          this.fileArray.forEach(e => {
-            if (e.documentid === uuid) {
-              e.ingestionStatus = status;
-            }
-          });
+          setTimeout(() => {
+            this.fileArray.forEach(e => {
+              if (e.documentid === uuid) {
+                e.ingestionStatus = status;
+              }
+            });
+          }, 1000);
         }).catch(err => {
           this.$message.error('上传失败')
           this.fileArray.forEach(e => {
@@ -692,7 +694,9 @@ export default {
           //     e.extractionStatus = status;
           //   }
           // });
-          this.getData();
+          setTimeout(() => {
+            this.getData();
+          }, 1000)
         }).catch(err => {
           this.$message.error('提取失败')
           this.fileArray.forEach(e => {

+ 10 - 6
src/components/pages/knowledge/folderFileBox.vue

@@ -584,11 +584,13 @@ export default {
             message: msg,
             type: status == 'success' ? status : 'error'
           })
-          this.fileArray.forEach(e => {
-            if (e.documentid === uuid) {
-              e.ingestionStatus = status;
-            }
-          });
+          setTimeout(() => {
+            this.fileArray.forEach(e => {
+              if (e.documentid === uuid) {
+                e.ingestionStatus = status;
+              }
+            });
+          }, 1000);
         }).catch(err => {
           this.$message.error('上传失败')
           this.fileArray.forEach(e => {
@@ -770,7 +772,9 @@ export default {
           //     e.extractionStatus = status;
           //   }
           // });
-          this.getData();
+          setTimeout(() => {
+            this.getData();
+          }, 1000)
         }).catch(err => {
           this.$message.error('提取失败')
           this.fileArray.forEach(e => {

部分文件因为文件数量过多而无法显示