mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Uploader): should not preview failed images (#10790)
Co-authored-by: Rail <wanglifei@yiqicai.com>
This commit is contained in:
parent
419a8e4f0e
commit
9a6bc32cf4
@ -230,7 +230,7 @@ export default defineComponent({
|
|||||||
const imageFiles = props.modelValue.filter(isImageFile);
|
const imageFiles = props.modelValue.filter(isImageFile);
|
||||||
const images = imageFiles
|
const images = imageFiles
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
if (item.file && !item.url) {
|
if (item.file && !item.url && item.status !== 'failed') {
|
||||||
item.url = URL.createObjectURL(item.file);
|
item.url = URL.createObjectURL(item.file);
|
||||||
urls.push(item.url);
|
urls.push(item.url);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user