diff options
| author | pany <[email protected]> | 2023-05-25 09:22:10 +0800 |
|---|---|---|
| committer | pany <[email protected]> | 2023-05-25 09:22:10 +0800 |
| commit | d3673e431e97541cba6c9eab68fc612af53a6778 (patch) | |
| tree | d70009fb2a95ca3f6d066ac9f34a3962c11319db | |
| parent | d090c294ae3fe1e000fadbe2b55898741e548338 (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.ts | 2 | ||||
| -rw-r--r-- | src/utils/cache/localStorage.ts | 2 |
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" |
