修改h5登录不跳转的错误
This commit is contained in:
parent
1a73b2b6dc
commit
688aee582d
@ -1241,7 +1241,7 @@
|
|||||||
console.log(data, 'hanshu')
|
console.log(data, 'hanshu')
|
||||||
let that = this
|
let that = this
|
||||||
this.checkOpenId(data.user)
|
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";
|
"/pages/index/index";
|
||||||
that.$store.commit("LOGIN", {
|
that.$store.commit("LOGIN", {
|
||||||
'token': data.token,
|
'token': data.token,
|
||||||
@ -1264,6 +1264,9 @@
|
|||||||
'/pages/goods_cate/goods_cate',
|
'/pages/goods_cate/goods_cate',
|
||||||
'/pages/user/index'
|
'/pages/user/index'
|
||||||
]
|
]
|
||||||
|
// #ifdef H5
|
||||||
|
backUrl = backUrl.replace('/h5', '')
|
||||||
|
// #endif
|
||||||
if (indexPat.includes(this.getPath(backUrl))) {
|
if (indexPat.includes(this.getPath(backUrl))) {
|
||||||
method = 'switchTab'
|
method = 'switchTab'
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user