diff --git a/pages/shareRegist/index.vue b/pages/shareRegist/index.vue index e230beb..c7359ac 100644 --- a/pages/shareRegist/index.vue +++ b/pages/shareRegist/index.vue @@ -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',