diff --git a/pages/projectEnd/InspectionRoute/inspecteddetail.vue b/pages/projectEnd/InspectionRoute/inspecteddetail.vue index 9d78657b..5dc769a1 100644 --- a/pages/projectEnd/InspectionRoute/inspecteddetail.vue +++ b/pages/projectEnd/InspectionRoute/inspecteddetail.vue @@ -121,7 +121,7 @@ this.info = JSON.parse(options.info); this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight this.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn; - console.log(options); + console.log(this.info); }, onShow(){ this.getcheckingList(); @@ -148,7 +148,7 @@ success: res => { console.log(res.result.records); that.checkingList = res.result.records; - this.checkingInfoDetail = res.result.records[0]; + this.checkingInfoDetail = res.result.records.length > 0 ? res.result.records[0] : {}; this.getcheckingInfo(); } })