120
This commit is contained in:
@@ -98,6 +98,7 @@
|
||||
this.getTopicList()
|
||||
|
||||
uni.$on('updateList', () => {
|
||||
this.getMyPublishCount()
|
||||
this.changeTab(this.currIndex)
|
||||
})
|
||||
|
||||
@@ -110,6 +111,10 @@
|
||||
}
|
||||
},
|
||||
|
||||
onUnload () {
|
||||
uni.$off('updateList')
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions(['autoLogin']),
|
||||
|
||||
|
||||
@@ -187,6 +187,7 @@
|
||||
if (res.code === 0) {
|
||||
this.$toast('删除成功!')
|
||||
this.getInfo()
|
||||
uni.$emit('updateList')
|
||||
this.changeTab(this.currIndex)
|
||||
}
|
||||
})
|
||||
@@ -202,6 +203,7 @@
|
||||
if (res.code === 0) {
|
||||
this.$toast('删除成功!')
|
||||
this.getInfo()
|
||||
uni.$emit('updateList')
|
||||
this.changeTab(this.currIndex)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user