This commit is contained in:
yanran200730
2023-03-20 14:45:40 +08:00
parent 0f568046c5
commit 0a47f48e81
2 changed files with 7 additions and 0 deletions

View File

@@ -98,6 +98,7 @@
this.getTopicList() this.getTopicList()
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.getMyPublishCount()
this.changeTab(this.currIndex) this.changeTab(this.currIndex)
}) })
@@ -110,6 +111,10 @@
} }
}, },
onUnload () {
uni.$off('updateList')
},
methods: { methods: {
...mapActions(['autoLogin']), ...mapActions(['autoLogin']),

View File

@@ -187,6 +187,7 @@
if (res.code === 0) { if (res.code === 0) {
this.$toast('删除成功!') this.$toast('删除成功!')
this.getInfo() this.getInfo()
uni.$emit('updateList')
this.changeTab(this.currIndex) this.changeTab(this.currIndex)
} }
}) })
@@ -202,6 +203,7 @@
if (res.code === 0) { if (res.code === 0) {
this.$toast('删除成功!') this.$toast('删除成功!')
this.getInfo() this.getInfo()
uni.$emit('updateList')
this.changeTab(this.currIndex) this.changeTab(this.currIndex)
} }
}) })