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