diff --git a/src/constants/cacheKey.ts b/src/constants/cacheKey.ts index c07b1b1..e1f0692 100644 --- a/src/constants/cacheKey.ts +++ b/src/constants/cacheKey.ts @@ -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