diff --git a/src/apps/AppNotification/AppNotification.vue b/src/apps/AppNotification/AppNotification.vue index a242a2bc..9664451e 100644 --- a/src/apps/AppNotification/AppNotification.vue +++ b/src/apps/AppNotification/AppNotification.vue @@ -91,19 +91,6 @@ } }, - created() { - const {id} = this.$route.query - if(id){ - this.comp = "detail"; - this.params = { - id, - flag: true - }; - this.showList = false; - } - this.$dict.load("announcementStatus"); - }, - computed: { tabs() { return [{name: "最新公告"}, {name: "公告管理"}]; @@ -143,7 +130,22 @@ } }, + created() { + this.$dict.load("announcementStatus"); + }, + methods: { + emitShow(){ + const {id} = this.$route.query + if(id){ + this.comp = "detail"; + this.params = { + id, + flag: true + }; + this.showList = false; + } + }, changeState() { this.$http.post(this.content == '删除' ? '/app/appannouncement/delete' : "/app/appannouncement/update-status", null, { params: {