diff --git a/pages/massif/pestType.vue b/pages/massif/pestType.vue index 51eb91b..c618a71 100644 --- a/pages/massif/pestType.vue +++ b/pages/massif/pestType.vue @@ -262,7 +262,7 @@ export default { }else{ uni.showModal({ title:"提示", - content:"添加虫害失败!", + content:res.msg||"添加虫害失败!", showCancel:false, }) } @@ -273,12 +273,13 @@ export default { text:e, } }) + console.log(res,'---res----2----') if(res.statu){ this.list.push({id:res.data.id,name:e}) }else{ uni.showModal({ title:"提示", - content:"添加病害失败!", + content:res.msg||"添加病害失败!", showCancel:false, }) }