浏览代码

Merge branch 'deploy' of http://git.chelingzhu.com/chelingzhu-web/storeCheck-app into deploy

lilei 4 年之前
父节点
当前提交
c7833f44b8
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 8 5
      pages/toDoList/backlogDetail.vue

+ 8 - 5
pages/toDoList/backlogDetail.vue

@@ -114,11 +114,13 @@
 					if(res.status==200){
 						this.infoData = res.data 
 						let arr = []
-						this.infoData.backlogPhotoList.map(item=>{
-							if(item.photoPath) {
-								arr.push(item.photoPath)
-							}
-						})
+						if (this.infoData.backlogPhotoList) {
+							this.infoData.backlogPhotoList.map(item=>{
+								if(item.photoPath) {
+									arr.push(item.photoPath)
+								}
+							})
+						}
 						this.backlogPhotoList = arr
 					} else {
 						this.toashMsg(res.message)
@@ -157,6 +159,7 @@
 				handleBackLog(params).then(res=>{
 					this.toashMsg(res.message)
 					if(res.status==200){
+						uni.$emit('refreshBl-handle')
 						if (type=='COMMENTS') {
 							this.comment = ''
 							this.isFocus = false