fix(Uploader): optimize image preview (#11044)

This commit is contained in:
活轨 2022-09-17 13:50:38 +08:00 committed by GitHub
parent d19bc044cf
commit 3e47f5b289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ export default createComponent({
const imageFiles = this.fileList.filter((item) => isImageFile(item));
const imageContents = imageFiles.map((item) => {
if (item.file && !item.url) {
if (item.file && !item.url && item.status !== 'failed') {
item.url = URL.createObjectURL(item.file);
this.urls.push(item.url);
}