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) {