diff --git a/mobile-web/src/page/user/address/list.vue b/mobile-web/src/page/user/address/list.vue index d4c975473..934df5db0 100644 --- a/mobile-web/src/page/user/address/list.vue +++ b/mobile-web/src/page/user/address/list.vue @@ -26,7 +26,7 @@ }, data() { return { - chosenAddressId: '1', + chosenAddressId: -1, isSelect: false, list: [], } @@ -55,6 +55,9 @@ this.isSelect = this.$route.query.id > 0; GetAddressList().then(response => { this.list = response.map(item => { + if (item.hasDefault == 2) { + this.chosenAddressId = item.id; + } // convert data return {