|
@@ -29,7 +29,7 @@ router.beforeEach((to, from, next) => {
|
|
|
console.log('校验Token是否过期');
|
|
|
checkToken(access_token).then(res => {
|
|
|
console.log('Token未过期,用户信息获取成功:' + res.data);
|
|
|
- if (res.data.success) {
|
|
|
+ if (res.success) {
|
|
|
let username = res.data.uid
|
|
|
console.log('开始自动认证登录');
|
|
|
store.dispatch("LoginNew", username)
|