Explorar o código

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

扫码换代理在有订单的情况下提示 不能更换,在取消订单之后自动会自动更换,是因为没有取消缓存的缘故
xiansin %!s(int64=4) %!d(string=hai) anos
pai
achega
83dd14b24a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,