From 458e264db0f93df9ed6875daa90aa080febd6a41 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 24 Dec 2021 11:25:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMarryAndDie/Add.vue | 7 +++++-- src/apps/AppMarryAndDie/AppMarryAndDie.vue | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/apps/AppMarryAndDie/Add.vue b/src/apps/AppMarryAndDie/Add.vue index dc0eb59f..e4272107 100644 --- a/src/apps/AppMarryAndDie/Add.vue +++ b/src/apps/AppMarryAndDie/Add.vue @@ -132,9 +132,12 @@ export default { }) .then((res) => { if (res.code == 0) { - this.$u.toast('发布成功') this.flag = false - uni.navigateTo({ url: `./AppMarryAndDie?indexTabs=1` }) + this.$u.toast('发布成功') + uni.$emit('updateList') + setTimeout(() => { + uni.navigateBack() + }, 600) } }) } else { diff --git a/src/apps/AppMarryAndDie/AppMarryAndDie.vue b/src/apps/AppMarryAndDie/AppMarryAndDie.vue index 5932c82f..d11debbd 100644 --- a/src/apps/AppMarryAndDie/AppMarryAndDie.vue +++ b/src/apps/AppMarryAndDie/AppMarryAndDie.vue @@ -150,6 +150,11 @@ export default { this.$dict.load('marriageType', 'modeType').then(() => { this.getEchart() }) + uni.$on('updateList', () => { + this.current = 1 + this.getList() + this.getEchart() + }) }, mounted() { this.Echart = echarts.init(document.getElementById('yearStatistic'))