列表刷新

This commit is contained in:
花有清香月有阴
2021-12-24 11:52:02 +08:00
parent dc86715241
commit 1ba381eea0
4 changed files with 12 additions and 3 deletions

View File

@@ -113,6 +113,10 @@ export default {
this.$dict.load('realityStatus').then(() => {
this.getList()
})
uni.$on('updateList', () => {
this.current = 1
this.getList()
})
},
mounted() {},
methods: {

View File

@@ -149,7 +149,10 @@ export default {
if (res.code == 0) {
this.$u.toast('保存成功')
this.flag = false
uni.navigateTo({ url: `./AppWalkask` })
uni.$emit('updateList')
setTimeout(() => {
uni.navigateBack()
}, 600)
}
})
} else {