vue-vben-admin/src/enums/cacheEnum.ts

32 lines
688 B
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
// token key
2021-02-27 19:55:30 +08:00
export const TOKEN_KEY = 'TOKEN__';
2020-09-28 20:19:10 +08:00
export const LOCALE_KEY = 'LOCALE__';
2020-09-28 20:19:10 +08:00
// user info key
export const USER_INFO_KEY = 'USER__INFO__';
// role info key
export const ROLES_KEY = 'ROLES__KEY__';
// project config key
export const PROJ_CFG_KEY = 'PROJ__CFG__KEY__';
// lock info
export const LOCK_INFO_KEY = 'LOCK__INFO__KEY__';
2021-04-10 21:18:35 +08:00
export const MULTIPLE_TABS_KEY = 'MULTIPLE_TABS__KEY__';
2021-04-07 23:14:51 +08:00
export const APP_DARK_MODE_KEY_ = '__APP__DARK__MODE__';
2020-09-28 20:19:10 +08:00
// base global local key
export const APP_LOCAL_CACHE_KEY = 'COMMON__LOCAL__KEY__';
2021-02-27 19:55:30 +08:00
// base global session key
export const APP_SESSION_CACHE_KEY = 'COMMON__SESSION__KEY__';
2021-02-27 19:55:30 +08:00
2020-11-25 21:26:10 +08:00
export enum CacheTypeEnum {
SESSION,
LOCAL,
}