解决图片上传组件bug
This commit is contained in:
parent
fdcc7367e3
commit
6b709a7622
@ -92,8 +92,12 @@ export default {
|
|||||||
this.fileList = list.map(item => {
|
this.fileList = list.map(item => {
|
||||||
if (typeof item === "string") {
|
if (typeof item === "string") {
|
||||||
// edit by 芋道源码
|
// edit by 芋道源码
|
||||||
|
if(item.includes(this.viewFileUrl)){
|
||||||
|
item = { name: item, url: item };
|
||||||
|
}else{
|
||||||
item = { name: item, url: this.viewFileUrl+item };
|
item = { name: item, url: this.viewFileUrl+item };
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user