From 0de76db63776da6a16e35f5e6f1f5857b191ee8f Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Wed, 4 Sep 2024 15:00:04 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E4=BF=AE=E6=94=B9=E9=A2=84?= =?UTF-8?q?=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fileManage/components/FileList/components/FileTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/projectFront/fileManage/components/FileList/components/FileTable.vue b/src/views/projectFront/fileManage/components/FileList/components/FileTable.vue index 828375fb..c72eed66 100644 --- a/src/views/projectFront/fileManage/components/FileList/components/FileTable.vue +++ b/src/views/projectFront/fileManage/components/FileList/components/FileTable.vue @@ -622,7 +622,7 @@ export default { return row.fileUrl.indexOf(item) == -1; }); console.log(every); - let src = row.fileUrl; + let src = row.fileUrl.includes('http://') ? row.fileUrl : this.$store.state.FILEURL + row.fileUrl; this.previewUrl = every ? `http://jxjzw.zhgdyun.com:8012/onlinePreview?url=${encodeURIComponent(encode(src))}` : src; console.log(this.previewUrl); }