120
This commit is contained in:
@@ -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']),
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user