列表刷新
This commit is contained in:
@@ -132,9 +132,12 @@ export default {
|
|||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('发布成功')
|
|
||||||
this.flag = false
|
this.flag = false
|
||||||
uni.navigateTo({ url: `./AppMarryAndDie?indexTabs=1` })
|
this.$u.toast('发布成功')
|
||||||
|
uni.$emit('updateList')
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 600)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -150,6 +150,11 @@ export default {
|
|||||||
this.$dict.load('marriageType', 'modeType').then(() => {
|
this.$dict.load('marriageType', 'modeType').then(() => {
|
||||||
this.getEchart()
|
this.getEchart()
|
||||||
})
|
})
|
||||||
|
uni.$on('updateList', () => {
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
|
this.getEchart()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.Echart = echarts.init(document.getElementById('yearStatistic'))
|
this.Echart = echarts.init(document.getElementById('yearStatistic'))
|
||||||
|
|||||||
Reference in New Issue
Block a user