refactor(storage): ♻️ 简化缓存管理方式,统一使用Storage类直接操作token和缓存
This commit is contained in:
7
src/constants/cache-keys.ts
Normal file
7
src/constants/cache-keys.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* 缓存键常量
|
||||
*/
|
||||
export const ACCESS_TOKEN_KEY = "access_token";
|
||||
export const REFRESH_TOKEN_KEY = "refresh_token";
|
||||
export const DICT_CACHE_KEY = "dict_cache";
|
||||
// 可在此处添加其他缓存键
|
||||
Reference in New Issue
Block a user