Browse Source

修改知识库上传时报错

yangg 9 months ago
parent
commit
93094d002c

+ 1 - 1
.env.development

@@ -2,5 +2,5 @@
 ENV = 'development'
 ENV = 'development'
 port = 8080
 port = 8080
 # base api
 # base api
-VUE_APP_BASE_API = 'http://192.168.1.178:8084'
+VUE_APP_BASE_API = 'http://58.246.234.210:8084'
 #192.168.1.178
 #192.168.1.178

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-e1ce3178.b4bc856e.css → dist/static/css/chunk-e8324248.b4bc856e.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.bf473b8c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-e1ce3178.98641299.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-e8324248.7a7603cf.js


+ 12 - 1
src/views/knowledgeMenu/category/components/dataSearch.vue

@@ -272,7 +272,18 @@ export default {
     },
     },
     /*  */
     /*  */
     handleFileChange(file, fileList) {
     handleFileChange(file, fileList) {
-      this.fileList = fileList.map((f) => f.raw);
+      // Update this method
+      this.fileList = fileList.map((f) => {
+        if (!f.uid) {
+          f.uid = Date.now() + this.randomString(); // Add a unique identifier
+        }
+        return f;
+      });
+    },
+
+    // Add this new method
+    randomString() {
+      return Math.random().toString(36).substring(2, 15);
     },
     },
 
 
     handleRemove(file, fileList) {
     handleRemove(file, fileList) {

Some files were not shown because too many files changed in this diff