From d3673e431e97541cba6c9eab68fc612af53a6778 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Thu, 25 May 2023 09:22:10 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=20constants=20=E7=9B=AE=E5=BD=95=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/{cacheKey.ts => cache-key.ts} | 0 src/utils/cache/cookies.ts | 2 +- src/utils/cache/localStorage.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/constants/{cacheKey.ts => cache-key.ts} (100%) diff --git a/src/constants/cacheKey.ts b/src/constants/cache-key.ts similarity index 100% rename from src/constants/cacheKey.ts rename to src/constants/cache-key.ts diff --git a/src/utils/cache/cookies.ts b/src/utils/cache/cookies.ts index 537d6c6..21d938f 100644 --- a/src/utils/cache/cookies.ts +++ b/src/utils/cache/cookies.ts @@ -1,6 +1,6 @@ /** 统一处理 Cookie */ -import CacheKey from "@/constants/cacheKey" +import CacheKey from "@/constants/cache-key" import Cookies from "js-cookie" export const getToken = () => { diff --git a/src/utils/cache/localStorage.ts b/src/utils/cache/localStorage.ts index db03729..7b601ef 100644 --- a/src/utils/cache/localStorage.ts +++ b/src/utils/cache/localStorage.ts @@ -1,6 +1,6 @@ /** 统一处理 localStorage */ -import CacheKey from "@/constants/cacheKey" +import CacheKey from "@/constants/cache-key" import { type SidebarOpened, type SidebarClosed } from "@/constants/app-key" import { type ThemeName } from "@/hooks/useTheme"