Browse Source

mod:toggleCompany

panqiuyao 8 months ago
parent
commit
2aeb808414
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/src/stores/modules/user.ts

+ 1 - 1
frontend/src/stores/modules/user.ts

@@ -52,7 +52,7 @@ export const useUserInfo = defineStore('userInfo', () => {
     try {
     try {
       const res = await login(data); // 调用登录接口
       const res = await login(data); // 调用登录接口
       await updateToken(res.data.token); // 更新登录令牌
       await updateToken(res.data.token); // 更新登录令牌
-      await getInfo(); // 获取用户信息
+   //   await getInfo(); // 获取用户信息
       return res;
       return res;
     } catch (error) {
     } catch (error) {
       console.error('登录失败:', error);
       console.error('登录失败:', error);