From 938fdc57d8835ce1c84a7741fdbdc3b266c43652 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 18 Aug 2022 15:24:31 +0800 Subject: [PATCH] 30935 --- src/project/saas/AppNotification/AppNotification.vue | 7 +++++++ src/project/saas/AppNotification/add.vue | 1 + 2 files changed, 8 insertions(+) diff --git a/src/project/saas/AppNotification/AppNotification.vue b/src/project/saas/AppNotification/AppNotification.vue index c3200cb0..b4396371 100644 --- a/src/project/saas/AppNotification/AppNotification.vue +++ b/src/project/saas/AppNotification/AppNotification.vue @@ -141,6 +141,13 @@ export default { this.injectJWeixin(['sendChatMessage']).then(() => { this.getList(); }) + + uni.$on('refresh', () => { + this.current = 1 + this.status = '加载更多' + + this.getList() + }) }, onReachBottom() { diff --git a/src/project/saas/AppNotification/add.vue b/src/project/saas/AppNotification/add.vue index 780c7c85..36e653d6 100644 --- a/src/project/saas/AppNotification/add.vue +++ b/src/project/saas/AppNotification/add.vue @@ -177,6 +177,7 @@ export default { }).then(res => { if (res.code == 0) { this.$u.toast(status == 1 ? "发布成功" : "保存成功"); + uni.$emit('refresh') uni.navigateBack({}) } })