列表刷新
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user