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