Browse Source

fix(controller): 扫码更换代理BUG

扫码换代理在有订单的情况下提示 不能更换,在取消订单之后自动会自动更换,是因为没有取消缓存的缘故
xiansin 4 years ago
parent
commit
83dd14b24a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pages/index/index.vue

+ 1 - 0
pages/index/index.vue

xqd
@@ -268,6 +268,7 @@
                                     url: this.$api.share.bind_parent
                                 }).then(res => {
                                     console.log('bind->',res)
+                                    this.$store.dispatch('user/setTempParentId', 0)
                                     if(res.error){
                                         uni.showToast({
                                             title: res.error,