diff --git a/pages/home/news.vue b/pages/home/news.vue index e48d2f4..13a74bb 100644 --- a/pages/home/news.vue +++ b/pages/home/news.vue @@ -202,7 +202,7 @@ - + {{v.cropName}} @@ -280,8 +280,8 @@ export default { async toDetail(index){ var res=await request("/api/message/getById",{params:{id:this.list[index].id}}) if(res.statu){ - if(this.list[index].readStatus=='未读'){ - this.list[index].readStatus='已读' + if(this.list[index].readStatus=='2'){ + this.list[index].readStatus='1' this.$store.state.sysMsgNum-=1 } uni.navigateTo({ @@ -300,4 +300,4 @@ export default { } }, } - \ No newline at end of file +