feat(shareRegist): 自动登录问题修复
This commit is contained in:
parent
0b22e1e2bd
commit
c31e192938
|
@ -458,7 +458,7 @@ export default {
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
})
|
})
|
||||||
setToken(res.data.access_token)
|
setToken(loginRes.data.access_token)
|
||||||
store.dispatch('GetInfo').then(res => {
|
store.dispatch('GetInfo').then(res => {
|
||||||
uni.switchTab({ url: '/pages/index/index' })
|
uni.switchTab({ url: '/pages/index/index' })
|
||||||
})
|
})
|
||||||
|
@ -475,7 +475,8 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(err => {
|
||||||
|
console.log(err)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '自动登录请求失败',
|
title: '自动登录请求失败',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
Loading…
Reference in New Issue