Commit 1c0933953f5090d8b2a224342752b0291c132803
1 parent
b7f71db5
安卓手机确定和取消地址时清除addressId
Showing
1 changed file
with
4 additions
and
2 deletions
src/components/addressToast/addressToast.vue
| @@ -239,8 +239,9 @@ export default { | @@ -239,8 +239,9 @@ export default { | ||
| 239 | this.$parent.pointsToast_control = false; | 239 | this.$parent.pointsToast_control = false; |
| 240 | // 安卓手机下特殊处理 | 240 | // 安卓手机下特殊处理 |
| 241 | if (this.isAndroid.value) { | 241 | if (this.isAndroid.value) { |
| 242 | - // 安卓下清除locaStroe的ext数据 | 242 | + // 安卓下清除locaStroe的ext和addressId数据 |
| 243 | window.localStorage.removeItem("ext"); | 243 | window.localStorage.removeItem("ext"); |
| 244 | + window.localStorage.removeItem("addressId"); | ||
| 244 | } | 245 | } |
| 245 | // 清除URL数据pointsToast_control | 246 | // 清除URL数据pointsToast_control |
| 246 | window.location.href = | 247 | window.location.href = |
| @@ -278,8 +279,9 @@ export default { | @@ -278,8 +279,9 @@ export default { | ||
| 278 | 279 | ||
| 279 | orderInfo.addressId = window.localStorage.getItem("addressId") || this.addressInfo.id | 280 | orderInfo.addressId = window.localStorage.getItem("addressId") || this.addressInfo.id |
| 280 | orderInfo.pointsToast_control = this.getParameterByName("pointsToast_control") | 281 | orderInfo.pointsToast_control = this.getParameterByName("pointsToast_control") |
| 281 | - // 安卓下清除locaStroe的ext数据 | 282 | + // 安卓下清除locaStroe的ext和addressId数据 |
| 282 | window.localStorage.removeItem("ext"); | 283 | window.localStorage.removeItem("ext"); |
| 284 | + window.localStorage.removeItem("addressId"); | ||
| 283 | } else { | 285 | } else { |
| 284 | window.location.href = | 286 | window.location.href = |
| 285 | window.location.href.split("?")[0] + | 287 | window.location.href.split("?")[0] + |