From 688aee582d5695f27675701222d4c9183e43ab67 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Sat, 18 May 2024 11:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9h5=E7=99=BB=E5=BD=95=E4=B8=8D?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/users/login/login_copy.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {