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 | 239 | this.$parent.pointsToast_control = false; |
| 240 | 240 | // 安卓手机下特殊处理 |
| 241 | 241 | if (this.isAndroid.value) { |
| 242 | - // 安卓下清除locaStroe的ext数据 | |
| 242 | + // 安卓下清除locaStroe的ext和addressId数据 | |
| 243 | 243 | window.localStorage.removeItem("ext"); |
| 244 | + window.localStorage.removeItem("addressId"); | |
| 244 | 245 | } |
| 245 | 246 | // 清除URL数据pointsToast_control |
| 246 | 247 | window.location.href = |
| ... | ... | @@ -278,8 +279,9 @@ export default { |
| 278 | 279 | |
| 279 | 280 | orderInfo.addressId = window.localStorage.getItem("addressId") || this.addressInfo.id |
| 280 | 281 | orderInfo.pointsToast_control = this.getParameterByName("pointsToast_control") |
| 281 | - // 安卓下清除locaStroe的ext数据 | |
| 282 | + // 安卓下清除locaStroe的ext和addressId数据 | |
| 282 | 283 | window.localStorage.removeItem("ext"); |
| 284 | + window.localStorage.removeItem("addressId"); | |
| 283 | 285 | } else { |
| 284 | 286 | window.location.href = |
| 285 | 287 | window.location.href.split("?")[0] + | ... | ... |