返回列表页需更新数据
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user