返回列表页需更新数据
This commit is contained in:
@@ -61,20 +61,15 @@ export default {
|
||||
...mapState(['user'])
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.current = 1
|
||||
this.isMore = false
|
||||
this.getList()
|
||||
},
|
||||
onLoad() {
|
||||
this.$loading()
|
||||
this.$dict.load(['clapEventStatus']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
|
||||
uni.$on('update', () => {
|
||||
this.current = 1
|
||||
this.isMore = false
|
||||
|
||||
this.getList()
|
||||
})
|
||||
this.$dict.load(['clapEventStatus'])
|
||||
},
|
||||
|
||||
methods: {
|
||||
toReport() {
|
||||
this.$linkTo('./PhotoForm')
|
||||
@@ -137,7 +132,6 @@ export default {
|
||||
}).catch(() => 0)
|
||||
}
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.getList()
|
||||
}
|
||||
|
||||
@@ -61,20 +61,15 @@ export default {
|
||||
...mapState(['user'])
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.current = 1
|
||||
this.isMore = false
|
||||
this.getList()
|
||||
},
|
||||
onLoad() {
|
||||
this.$loading()
|
||||
this.$dict.load(['clapEventStatus']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
|
||||
uni.$on('update', () => {
|
||||
this.current = 1
|
||||
this.isMore = false
|
||||
|
||||
this.getList()
|
||||
})
|
||||
this.$dict.load(['clapEventStatus'])
|
||||
},
|
||||
|
||||
methods: {
|
||||
toReport() {
|
||||
this.$linkTo('./PhotoForm')
|
||||
@@ -137,7 +132,6 @@ export default {
|
||||
}).catch(() => 0)
|
||||
}
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.getList()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user