mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +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 images = imageFiles
|
||||
.map((item) => {
|
||||
if (item.file && !item.url) {
|
||||
if (item.file && !item.url && item.status !== 'failed') {
|
||||
item.url = URL.createObjectURL(item.file);
|
||||
urls.push(item.url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user