zhou1577692533 před 1 týdnem
rodič
revize
1c75e2b147
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/script/service.ts

+ 1 - 1
src/script/service.ts

@@ -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 || '登录失败');
   }