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); }