mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(Uploader): should not preview failed images (#10790)
Co-authored-by: Rail <wanglifei@yiqicai.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user