perf: 代码优化 constants/cacheKey
This commit is contained in:
parent
002bbdec8f
commit
17dc453350
@ -2,9 +2,9 @@ const SYSTEM_NAME = "v3-admin-vite"
|
|||||||
|
|
||||||
/** 缓存数据时用到的 Key */
|
/** 缓存数据时用到的 Key */
|
||||||
class CacheKey {
|
class CacheKey {
|
||||||
static TOKEN = `${SYSTEM_NAME}-token-key`
|
static readonly TOKEN = `${SYSTEM_NAME}-token-key`
|
||||||
static SIDEBAR_STATUS = `${SYSTEM_NAME}-sidebar-status-key`
|
static readonly SIDEBAR_STATUS = `${SYSTEM_NAME}-sidebar-status-key`
|
||||||
static ACTIVE_THEME_NAME = `${SYSTEM_NAME}-active-theme-name-key`
|
static readonly ACTIVE_THEME_NAME = `${SYSTEM_NAME}-active-theme-name-key`
|
||||||
}
|
}
|
||||||
|
|
||||||
export default CacheKey
|
export default CacheKey
|
||||||
|
Loading…
x
Reference in New Issue
Block a user