| | |
| | | |
| | | import { loginApi, getUserInfoById } from '/@/api/sys/user'; |
| | | |
| | | import { setLocal, getLocal, getSession, setSession } from '/@/utils/helper/persistent'; |
| | | import { setLocal, getLocal, getSession, setSession } from '/@/utils/cache/persistent'; |
| | | import { useProjectSetting } from '/@/hooks/setting'; |
| | | import { useI18n } from '/@/hooks/web/useI18n'; |
| | | import { ErrorMessageMode } from '/@/utils/http/axios/types'; |
| | |
| | | |
| | | function setCache(USER_INFO_KEY: string, info: any) { |
| | | if (!info) return; |
| | | // const fn = permissionCacheType === CacheTypeEnum.LOCAL ? setLocal : setSession; |
| | | setLocal(USER_INFO_KEY, info, true); |
| | | // TODO |
| | | setSession(USER_INFO_KEY, info, true); |