diff --git a/pages/users/login/login_copy.vue b/pages/users/login/login_copy.vue index 74b2a70..e8eb10b 100644 --- a/pages/users/login/login_copy.vue +++ b/pages/users/login/login_copy.vue @@ -1241,7 +1241,7 @@ console.log(data, 'hanshu') let that = this this.checkOpenId(data.user) - const backUrl = that.$Cache.get('login_back_url_weixin') || that.$Cache.get(BACK_URL) || + let backUrl = that.$Cache.get('login_back_url_weixin') || that.$Cache.get(BACK_URL) || "/pages/index/index"; that.$store.commit("LOGIN", { 'token': data.token, @@ -1264,6 +1264,9 @@ '/pages/goods_cate/goods_cate', '/pages/user/index' ] + // #ifdef H5 + backUrl = backUrl.replace('/h5', '') + // #endif if (indexPat.includes(this.getPath(backUrl))) { method = 'switchTab' } else {