From 65788ddf6e495d3f3ccdde537f158536f524dbd3 Mon Sep 17 00:00:00 2001 From: wanglei <1336977847@qq.com> Date: Mon, 13 Dec 2021 14:06:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E6=94=B9?= =?UTF-8?q?=E5=9B=9E=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppNotification/add.vue | 3 --- src/apps/AppNotification/read.vue | 10 ++++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/apps/AppNotification/add.vue b/src/apps/AppNotification/add.vue index 98dda13c..5f9c9bb2 100644 --- a/src/apps/AppNotification/add.vue +++ b/src/apps/AppNotification/add.vue @@ -71,9 +71,6 @@ import {mapActions} from "vuex"; export default { name: "add", - props: { - params: Object - }, data() { return { show: false, diff --git a/src/apps/AppNotification/read.vue b/src/apps/AppNotification/read.vue index 9f757d84..9f7920a0 100644 --- a/src/apps/AppNotification/read.vue +++ b/src/apps/AppNotification/read.vue @@ -18,15 +18,17 @@ import {mapActions} from "vuex"; export default { name: "read", - props: { - params: [String, Number] - }, data() { return { current: 0, list: [], + id:null, } }, + onLoad(opt) { + this.id = opt.id; + this.getList(); + }, created() { document.title = "接收对象"; this.$loading() @@ -39,7 +41,7 @@ export default { getList() { this.$http.post("/app/appannouncementreader/list-unread", null, { params: { - id: this.params + id: this.id } }).then(res => { if (res && res.data) {