feat(shareRegist): 自动登录问题修复

This commit is contained in:
woody 2025-06-12 12:05:09 +08:00
parent 0b22e1e2bd
commit c31e192938
1 changed files with 3 additions and 2 deletions

View File

@ -458,7 +458,7 @@ export default {
icon: 'success',
duration: 1500,
})
setToken(res.data.access_token)
setToken(loginRes.data.access_token)
store.dispatch('GetInfo').then(res => {
uni.switchTab({ url: '/pages/index/index' })
})
@ -475,7 +475,8 @@ export default {
})
}
})
.catch(() => {
.catch(err => {
console.log(err)
uni.showToast({
title: '自动登录请求失败',
icon: 'none',