|
|
@@ -109,7 +109,7 @@ async function login(): Promise<UserInfo> {
|
|
|
console.error('解析用户信息失败:', e);
|
|
|
currentUserInfo = { userId: '', name: '用户' };
|
|
|
}
|
|
|
- return currentUserInfo;
|
|
|
+ return currentUserInfo!;
|
|
|
} else {
|
|
|
throw new Error(response.data.msg || '登录失败');
|
|
|
}
|