From 7b614716afbee26deb0afdf11ce7c904f114f6ad Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 8 Apr 2022 12:02:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=80=E5=87=BA=E7=99=BB=E9=99=86?= =?UTF-8?q?=E4=B8=8D=E6=B8=85=E7=A9=BAlocalstorage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/hooks/nav.ts | 2 +- src/store/modules/user.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/layout/hooks/nav.ts b/src/layout/hooks/nav.ts index d3e16ada7..e5e224e6a 100644 --- a/src/layout/hooks/nav.ts +++ b/src/layout/hooks/nav.ts @@ -7,8 +7,8 @@ import { remainingPaths } from "/@/router"; import { transformI18n } from "/@/plugins/i18n"; import { storageSession } from "/@/utils/storage"; import { useAppStoreHook } from "/@/store/modules/app"; -import { useEpThemeStoreHook } from "/@/store/modules/epTheme"; import { useUserStoreHook } from "/@/store/modules/user"; +import { useEpThemeStoreHook } from "/@/store/modules/epTheme"; export function useNav() { const pureApp = useAppStoreHook(); diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index dcac6194c..d744f3ebc 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -2,8 +2,8 @@ import { defineStore } from "pinia"; import { store } from "/@/store"; import { userType } from "./types"; import { router } from "/@/router"; +import { storageSession } from "/@/utils/storage"; import { getLogin, refreshToken } from "/@/api/user"; -import { storageLocal, storageSession } from "/@/utils/storage"; import { getToken, setToken, removeToken } from "/@/utils/auth"; import { useMultiTagsStoreHook } from "/@/store/modules/multiTags"; @@ -51,7 +51,6 @@ export const useUserStore = defineStore({ this.token = ""; this.name = ""; removeToken(); - storageLocal.clear(); storageSession.clear(); useMultiTagsStoreHook().handleTags("equal", [ {