返回列表页需更新数据

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

View File

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