修改h5登录不跳转的错误
This commit is contained in:
parent
1a73b2b6dc
commit
688aee582d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user