From 5ca0df7d5e51ba43b7c91576f22204fae32dac28 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Tue, 19 Nov 2024 18:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=80=E5=94=AE=E6=95=B0=E9=87=8F=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/news.vue | 3 --- pages/home/newsDetail.vue | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) 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") } }, }