Procházet zdrojové kódy

判断图片是否存在

gcz před 2 roky
rodič
revize
4348607350
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      pages/report/report.vue

+ 1 - 1
pages/report/report.vue

@@ -193,7 +193,7 @@
 						// this.reportDetails = res.data;
 						// this.fileList = res.data.imgList;
 						let imgList = res.data.imgList;
-						if(imgList.length>0){
+						if(imgList&&imgList.length>0){
 							this.fileList=imgList.map(img=>{
 								return {url:img}
 							})