From 17dc453350776794dd3393dd6739a4adec4ba553 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Sun, 21 May 2023 11:49:03 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?constants/cacheKey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/cacheKey.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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