Просмотр исходного кода

登录只有个人登录,企业要靠个人登录以后切换

lifanagju_citu 10 месяцев назад
Родитель
Сommit
739f0c22b0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/store/user.js

+ 1 - 1
src/store/user.js

@@ -24,7 +24,7 @@ import { getChatKey } from '@/api/common'
 export const useUserStore = defineStore('user',
   {
     state: () => ({
-      // loginType: null, // 登录类型 // 330为企业登录
+      loginType: 'personal', // 登录类型 // 330为企业登录
       accountInfo: localStorage.getItem('accountInfo') ? JSON.parse(localStorage.getItem('accountInfo')) : {}, // 登录返回的信息
       userInfo: localStorage.getItem('userInfo') ? JSON.parse(localStorage.getItem('userInfo')) : {}, // 当前登录账号信息
       baseInfo: localStorage.getItem('baseInfo') ? JSON.parse(localStorage.getItem('baseInfo')) : {}, // 人才信息