Explorar o código

判断图片是否存在

gcz %!s(int64=2) %!d(string=hai) anos
pai
achega
4348607350
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}
 							})