Authored by TaoHuang

fix address

@@ -38,7 +38,7 @@ export default { @@ -38,7 +38,7 @@ export default {
38 this.$router.push({ 38 this.$router.push({
39 name: 'address', 39 name: 'address',
40 query: { 40 query: {
41 - address_id: this.data.address_id 41 + address_id: this.data?.address_id
42 } 42 }
43 }); 43 });
44 } 44 }
@@ -134,10 +134,8 @@ export default function() { @@ -134,10 +134,8 @@ export default function() {
134 134
135 const address = find(get(addressInfo, 'data', []), { is_default: 'Y' }); 135 const address = find(get(addressInfo, 'data', []), { is_default: 'Y' });
136 136
137 - if (address) {  
138 commit(Types.FETCH_ORDER_ADDRESS, address); 137 commit(Types.FETCH_ORDER_ADDRESS, address);
139 } 138 }
140 - }  
141 }, 139 },
142 140
143 async fetchOrderPrice({ commit }, payload) { 141 async fetchOrderPrice({ commit }, payload) {