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,9 +134,7 @@ export default function() { @@ -134,9 +134,7 @@ 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);  
139 - } 137 + commit(Types.FETCH_ORDER_ADDRESS, address);
140 } 138 }
141 }, 139 },
142 140