Browse Source

选择病虫害 修改添加报错

master
邓宏 2 years ago
parent
commit
37f58f6e43
  1. 5
      pages/massif/pestType.vue

5
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,
})
}

Loading…
Cancel
Save