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 保留的数据
tabsStore.closeMultipleTab();
keepAlive.setKeepAliveName();
sessionStorage.setItem("contentType", "2");
};
/**

View File

@ -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;

View File

@ -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 | "";

View File

@ -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");