From 61ca40863ca0d78c9929e3032ed77db03be3299e Mon Sep 17 00:00:00 2001 From: wanglei <1336977847@qq.com> Date: Wed, 24 Nov 2021 10:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=9A=E7=9F=A5=E5=85=AC?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppNotification/AppNotification.vue | 7 ++++--- src/apps/AppNotification/components/detail.vue | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/apps/AppNotification/AppNotification.vue b/src/apps/AppNotification/AppNotification.vue index 530214fc..a242a2bc 100644 --- a/src/apps/AppNotification/AppNotification.vue +++ b/src/apps/AppNotification/AppNotification.vue @@ -91,11 +91,12 @@ } }, - onLoad(opt) { - if(opt.id){ + created() { + const {id} = this.$route.query + if(id){ this.comp = "detail"; this.params = { - id: opt.id, + id, flag: true }; this.showList = false; diff --git a/src/apps/AppNotification/components/detail.vue b/src/apps/AppNotification/components/detail.vue index 4b554941..ea2c17a5 100644 --- a/src/apps/AppNotification/components/detail.vue +++ b/src/apps/AppNotification/components/detail.vue @@ -74,6 +74,10 @@ created() { this.getDetail(); }, + + mounted() { + document.title = "公告详情"; + }, methods: { ...mapActions(['previewFile', 'injectJWeixin']), preFile(e) {