uni.$on
This commit is contained in:
@@ -53,7 +53,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList()
|
||||||
this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
|
this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
|
||||||
this.$on('update',()=>{
|
uni.$on('update',()=>{
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -50,8 +50,11 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
|
this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
|
||||||
this.current = 1
|
uni.$on('update',()=>{
|
||||||
this.getList()
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user