返回列表页需更新数据

This commit is contained in:
aixianling
2023-03-31 10:51:40 +08:00
parent daefc25b4b
commit 2a77cc8234
2 changed files with 12 additions and 24 deletions

View File

@@ -61,20 +61,15 @@ export default {
...mapState(['user'])
},
onLoad() {
this.$loading()
this.$dict.load(['clapEventStatus']).then(() => {
this.getList()
})
uni.$on('update', () => {
onShow() {
this.current = 1
this.isMore = false
this.getList()
})
},
onLoad() {
this.$loading()
this.$dict.load(['clapEventStatus'])
},
methods: {
toReport() {
this.$linkTo('./PhotoForm')
@@ -137,7 +132,6 @@ export default {
}).catch(() => 0)
}
},
onReachBottom() {
this.getList()
}

View File

@@ -61,20 +61,15 @@ export default {
...mapState(['user'])
},
onLoad() {
this.$loading()
this.$dict.load(['clapEventStatus']).then(() => {
this.getList()
})
uni.$on('update', () => {
onShow() {
this.current = 1
this.isMore = false
this.getList()
})
},
onLoad() {
this.$loading()
this.$dict.load(['clapEventStatus'])
},
methods: {
toReport() {
this.$linkTo('./PhotoForm')
@@ -137,7 +132,6 @@ export default {
}).catch(() => 0)
}
},
onReachBottom() {
this.getList()
}