diff --git a/pages/home/news.vue b/pages/home/news.vue index f5fcfaa..9ac6b7b 100644 --- a/pages/home/news.vue +++ b/pages/home/news.vue @@ -162,9 +162,6 @@ export default { } }, toDetail(e){ - if(this.searchVal.msgType==0){ - this.$store.dispatch("getSysMsg") - } uni.navigateTo({ url:`/pages/home/newsDetail?type=${e.msgType}&msgType=${this.searchVal.msgType}`, events:{update:()=>this.search('pageOne')} diff --git a/pages/home/newsDetail.vue b/pages/home/newsDetail.vue index f4943ba..e8d360a 100644 --- a/pages/home/newsDetail.vue +++ b/pages/home/newsDetail.vue @@ -124,6 +124,7 @@ export default { destroyed(){ if(this.searchVal.msgType==0){ this.eventChannel.emit("update") + this.$store.dispatch("getSysMsg") } }, }