Commit c90778c8b7940857c48dd48cfef0fadcd83b067f
1 parent
4505947f
优化
Showing
2 changed files
with
10 additions
and
2 deletions
src/pages/goodDetails/goodDetails.vue
| ... | ... | @@ -393,7 +393,11 @@ export default { |
| 393 | 393 | if (this.isAndroid.value) { |
| 394 | 394 | this.$refs.itemsInfo.getAppAddressInfo(addressInfo); |
| 395 | 395 | } else { |
| 396 | - this.$refs.itemsInfo.getAppAddressInfo(JSON.parse(addressInfo)); | |
| 396 | + if (addressInfo) { | |
| 397 | + this.$refs.itemsInfo.getAppAddressInfo(JSON.parse(addressInfo)); | |
| 398 | + } else { | |
| 399 | + this.$refs.itemsInfo.getAppAddressInfo(); | |
| 400 | + } | |
| 397 | 401 | } |
| 398 | 402 | }, |
| 399 | 403 | }, | ... | ... |
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
| ... | ... | @@ -227,7 +227,11 @@ export default { |
| 227 | 227 | if (this.isAndroid.value) { |
| 228 | 228 | this.$refs.itemsInfo.getAppAddressInfo(addressInfo); |
| 229 | 229 | } else { |
| 230 | - this.$refs.itemsInfo.getAppAddressInfo(JSON.parse(addressInfo)); | |
| 230 | + if (addressInfo) { | |
| 231 | + this.$refs.itemsInfo.getAppAddressInfo(JSON.parse(addressInfo)); | |
| 232 | + } else { | |
| 233 | + this.$refs.itemsInfo.getAppAddressInfo(); | |
| 234 | + } | |
| 231 | 235 | } |
| 232 | 236 | }, |
| 233 | 237 | }, | ... | ... |