mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	fix(Uploader): optimize image preview (#11044)
This commit is contained in:
		
							parent
							
								
									d19bc044cf
								
							
						
					
					
						commit
						3e47f5b289
					
				| @ -268,7 +268,7 @@ export default createComponent({ | |||||||
| 
 | 
 | ||||||
|       const imageFiles = this.fileList.filter((item) => isImageFile(item)); |       const imageFiles = this.fileList.filter((item) => isImageFile(item)); | ||||||
|       const imageContents = imageFiles.map((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); |           item.url = URL.createObjectURL(item.file); | ||||||
|           this.urls.push(item.url); |           this.urls.push(item.url); | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user