diff --git a/src/apps/AppMeetingNotice/components/belongToMe.vue b/src/apps/AppMeetingNotice/components/belongToMe.vue index b1f6aad1..0b081056 100644 --- a/src/apps/AppMeetingNotice/components/belongToMe.vue +++ b/src/apps/AppMeetingNotice/components/belongToMe.vue @@ -66,6 +66,13 @@ } }, methods: { + emitShow(){ + this.getList() + }, + emitReachBottom(){ + this.current = this.current + 1; + this.getList() + }, tag(status) { return { "1": this.$cdn + 'common/1wks.png', @@ -103,15 +110,6 @@ }, }, - created() { - this.getList() - }, - - onReachBottom() { - this.current = this.current + 1; - this.getList() - }, - filters: { formatTime(date) { return date.split(" ")[1]?.substr(0, 5) diff --git a/src/apps/AppNotification/AppNotification.vue b/src/apps/AppNotification/AppNotification.vue index 9664451e..81299bcc 100644 --- a/src/apps/AppNotification/AppNotification.vue +++ b/src/apps/AppNotification/AppNotification.vue @@ -145,6 +145,12 @@ }; this.showList = false; } + this.current = 1; + this.getList(); + }, + emitReachBottom(){ + this.current = this.current + 1; + this.getList() }, changeState() { this.$http.post(this.content == '删除' ? '/app/appannouncement/delete' : "/app/appannouncement/update-status", null, { @@ -246,16 +252,6 @@ }) } }, - - onShow() { - this.current = 1; - this.getList(); - }, - - onReachBottom() { - this.current = this.current + 1; - this.getList() - }, }