From 8957d5ab0d03766a4b65f3ade1bf173c6e54581f Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 24 Dec 2021 10:57:01 +0800 Subject: [PATCH] bug --- src/apps/AppCountryAlbum/list.vue | 3 +++ src/apps/AppMailList/add.vue | 1 + src/apps/AppMailList/myAddList.vue | 3 +++ 3 files changed, 7 insertions(+) diff --git a/src/apps/AppCountryAlbum/list.vue b/src/apps/AppCountryAlbum/list.vue index 0111e06a..ad3aaf1f 100644 --- a/src/apps/AppCountryAlbum/list.vue +++ b/src/apps/AppCountryAlbum/list.vue @@ -39,6 +39,9 @@ export default { this.areaName = this.user.areaName this.getList() uni.setNavigationBarTitle({title: '乡村相册'}) + uni.$on('updateList', () => { + this.getList() + }) }, methods: { diff --git a/src/apps/AppMailList/add.vue b/src/apps/AppMailList/add.vue index 6a4ec9dc..b5247c8e 100644 --- a/src/apps/AppMailList/add.vue +++ b/src/apps/AppMailList/add.vue @@ -117,6 +117,7 @@ export default { if (res.code == 0) { this.flag = false this.$u.toast('提交成功') + uni.$emit('updateList') setTimeout(() => { uni.navigateBack() }, 600) diff --git a/src/apps/AppMailList/myAddList.vue b/src/apps/AppMailList/myAddList.vue index e7f1e25e..638e51e8 100644 --- a/src/apps/AppMailList/myAddList.vue +++ b/src/apps/AppMailList/myAddList.vue @@ -35,6 +35,9 @@ export default { mounted() { this.getList() uni.setNavigationBarTitle({title: '便民通讯录'}) + uni.$on('updateList', () => { + this.getList() + }) }, methods: {