fix: BUG修改

This commit is contained in:
kun 2023-12-06 11:13:49 +08:00
parent f58377cf91
commit 2c0552c441
4 changed files with 0 additions and 5 deletions

View File

@ -100,7 +100,6 @@ export const defaultLogin = async (id: any) => {
// 3.清空 tabs、keepAlive 保留的数据 // 3.清空 tabs、keepAlive 保留的数据
tabsStore.closeMultipleTab(); tabsStore.closeMultipleTab();
keepAlive.setKeepAliveName(); keepAlive.setKeepAliveName();
sessionStorage.setItem("contentType", "2");
}; };
/** /**

View File

@ -131,7 +131,6 @@ export const Global3DStore = defineStore({
this.token = null; this.token = null;
this.moduleId = null; this.moduleId = null;
this.accountType = undefined; this.accountType = undefined;
this.contentType = undefined;
this.account = null; this.account = null;
this.userInfo = null; this.userInfo = null;
this.projectDateAuth = null; this.projectDateAuth = null;

View File

@ -4,7 +4,6 @@ export interface GlobalState {
token: string | null; token: string | null;
userInfo: any | null; userInfo: any | null;
accountType: number | undefined; accountType: number | undefined;
contentType: number | undefined;
moduleId: string | null; moduleId: string | null;
account: string | null; account: string | null;
assemblySize: AssemblySizeType | ""; assemblySize: AssemblySizeType | "";

View File

@ -131,14 +131,12 @@ const login = (formEl: FormInstance | undefined) => {
}; };
// //
const toBackLargeScreen = async () => { const toBackLargeScreen = async () => {
sessionStorage.setItem("contentType", "1");
// //
await initDynamicRouter(); await initDynamicRouter();
router.push("/largeScreen"); router.push("/largeScreen");
}; };
// //
const toFrontLargeScreen = async () => { const toFrontLargeScreen = async () => {
sessionStorage.setItem("contentType", "2");
// //
await initDynamicRouter(); await initDynamicRouter();
router.push("/frontLargeScreen"); router.push("/frontLargeScreen");