singleImgShow

This commit is contained in:
shijing 2022-11-01 16:17:43 +08:00
parent 599b613af4
commit 0832c435bc
1 changed files with 10 additions and 5 deletions

View File

@ -278,11 +278,16 @@ export default {
// fileList()fileList
// watchthis.lists
// sometrueeverytrue
let tmp = this.lists.some(val => {
return val.url == value.url;
})
// (tmpfalse)
!tmp && this.lists.push({ url: value.url, error: false, progress: 100,id:value.id});
if(value.url){
let tmp = this.lists.some(val => {
return val.url == value.url;
})
// (tmpfalse)
!tmp && this.lists.push({ url: value.url, error: false, progress: 100,id:value.id});
}else{
this.lists.push({ url: value, error: false, progress: 100});
}
});
}
},