Template
1
0
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:
pany 2023-05-21 11:49:03 +08:00
parent 002bbdec8f
commit 17dc453350

View File

@ -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