fix: BUG修改
This commit is contained in:
parent
f58377cf91
commit
2c0552c441
@ -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");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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 | "";
|
||||||
|
|||||||
@ -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");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user