From db3d71b62fcd859bf5e2c75b107c1d28bd977632 Mon Sep 17 00:00:00 2001
From: yz3456 <2753272399@qq.com>
Date: 星期日, 23 六月 2024 18:23:45 +0800
Subject: [PATCH] 修改了333之前的报错

---
 ruoyi-ui/src/views/bignote/familyeventInfo.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/ruoyi-ui/src/views/bignote/familyeventInfo.vue b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
index 6097d07..dfdcc69 100644
--- a/ruoyi-ui/src/views/bignote/familyeventInfo.vue
+++ b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
@@ -310,10 +310,18 @@
 		//	alert(pth)
             if (_this.fot.includes(pth) === true)
 			{
-				if(paths[i][0]=="/")
-              _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
-			  else
-			     _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
+        if(paths[i].includes(process.env.VUE_APP_BASE_TRUE_API)){
+          if(paths[i][0]=="/")
+                _this.fileList.push({name:paths[i],url: paths[i].substr(1),res:false})
+          else
+             _this.fileList.push({name:paths[i],url: paths[i],res:false})
+        }else{
+          if(paths[i][0]=="/")
+                _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
+          else
+             _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
+        }
+
 			  }
             else {
               // alert(paths[i])
@@ -332,6 +340,8 @@
         this.loading = false;
       });
     }
+    console.log(this.fileList,'fileListfilelllllllllllll')
+    console.log(this.fileListOther,'fileListOtherfileListOtherfileListOther')
   },
   mounted() {},
   methods: {
@@ -509,7 +519,7 @@
     },
     handleDownload(url) {
       var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")};
-
+		alert(formData['path'])
       let lens = formData.path.split(".")
       let suffix = lens[lens.length-1]
       download(formData).then(async (response) => {

--
Gitblit v1.9.1