This commit is contained in:
xiaofajia 2024-10-19 11:06:19 +08:00
commit 5e4b167684

View File

@ -92,7 +92,11 @@ export default {
this.fileList = list.map(item => { this.fileList = list.map(item => {
if (typeof item === "string") { if (typeof item === "string") {
// edit by // edit by
item = { name: item, url: this.viewFileUrl+item }; if(item.includes(this.viewFileUrl)){
item = { name: item, url: item };
}else{
item = { name: item, url: this.viewFileUrl+item };
}
} }
return item; return item;
}); });