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