feat:优化地址
This commit is contained in:
@@ -32,9 +32,21 @@ export default {
|
|||||||
selectAddress: {},
|
selectAddress: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
uni.$on('refreshAddressList', this.getAddressList);
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getAddressList();
|
this.getAddressList();
|
||||||
},
|
},
|
||||||
|
beforeUnmount() {
|
||||||
|
uni.$off('refreshAddressList', this.getAddressList);
|
||||||
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
uni.$off('refreshAddressList', this.getAddressList);
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.getAddressList();
|
||||||
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.getAddressList();
|
this.getAddressList();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user