feat:优化地址

This commit is contained in:
2026-07-23 14:02:58 +08:00
parent e128b5b4a8
commit f7a59925ef
+13 -1
View File
@@ -32,10 +32,22 @@ export default {
selectAddress: {}, selectAddress: {},
} }
}, },
created() {
uni.$on('refreshAddressList', this.getAddressList);
},
mounted() { mounted() {
this.getAddressList(); this.getAddressList();
}, },
activated () { beforeUnmount() {
uni.$off('refreshAddressList', this.getAddressList);
},
beforeDestroy() {
uni.$off('refreshAddressList', this.getAddressList);
},
onShow() {
this.getAddressList();
},
activated() {
this.getAddressList(); this.getAddressList();
}, },
methods: { methods: {