From 2c0552c44151e7b24f2d04d5ac09a75fd214e18c Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Wed, 6 Dec 2023 11:13:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/index.ts | 1 - src/stores/index.ts | 1 - src/stores/interface/index.ts | 1 - src/views/login/index.vue | 2 -- 4 files changed, 5 deletions(-) diff --git a/src/routers/index.ts b/src/routers/index.ts index b856556..29258c4 100644 --- a/src/routers/index.ts +++ b/src/routers/index.ts @@ -100,7 +100,6 @@ export const defaultLogin = async (id: any) => { // 3.清空 tabs、keepAlive 保留的数据 tabsStore.closeMultipleTab(); keepAlive.setKeepAliveName(); - sessionStorage.setItem("contentType", "2"); }; /** diff --git a/src/stores/index.ts b/src/stores/index.ts index 41e0bac..d757c68 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -131,7 +131,6 @@ export const Global3DStore = defineStore({ this.token = null; this.moduleId = null; this.accountType = undefined; - this.contentType = undefined; this.account = null; this.userInfo = null; this.projectDateAuth = null; diff --git a/src/stores/interface/index.ts b/src/stores/interface/index.ts index 537f21e..84effde 100644 --- a/src/stores/interface/index.ts +++ b/src/stores/interface/index.ts @@ -4,7 +4,6 @@ export interface GlobalState { token: string | null; userInfo: any | null; accountType: number | undefined; - contentType: number | undefined; moduleId: string | null; account: string | null; assemblySize: AssemblySizeType | ""; diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 54392e3..03f682e 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -131,14 +131,12 @@ const login = (formEl: FormInstance | undefined) => { }; // 跳转到后台系统 const toBackLargeScreen = async () => { - sessionStorage.setItem("contentType", "1"); // 添加路由 await initDynamicRouter(); router.push("/largeScreen"); }; // 跳转到前台系统 const toFrontLargeScreen = async () => { - sessionStorage.setItem("contentType", "2"); // 添加路由 await initDynamicRouter(); router.push("/frontLargeScreen");