解决图片上传组件bug

This commit is contained in:
Vinjor 2024-10-19 10:46:47 +08:00
parent fdcc7367e3
commit 6b709a7622

View File

@ -92,7 +92,11 @@ export default {
this.fileList = list.map(item => {
if (typeof item === "string") {
// 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;
});