summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpany <[email protected]>2023-05-25 09:22:10 +0800
committerpany <[email protected]>2023-05-25 09:22:10 +0800
commitd3673e431e97541cba6c9eab68fc612af53a6778 (patch)
treed70009fb2a95ca3f6d066ac9f34a3962c11319db
parentd090c294ae3fe1e000fadbe2b55898741e548338 (diff)
perf: 代码优化 统一 constants 目录下文件名风格
-rw-r--r--src/constants/cache-key.ts (renamed from src/constants/cacheKey.ts)0
-rw-r--r--src/utils/cache/cookies.ts2
-rw-r--r--src/utils/cache/localStorage.ts2
3 files changed, 2 insertions, 2 deletions
diff --git a/src/constants/cacheKey.ts b/src/constants/cache-key.ts
index e1f0692..e1f0692 100644
--- a/src/constants/cacheKey.ts
+++ b/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"