fix: BUG修改
This commit is contained in:
parent
f58377cf91
commit
2c0552c441
@ -100,7 +100,6 @@ export const defaultLogin = async (id: any) => {
|
||||
// 3.清空 tabs、keepAlive 保留的数据
|
||||
tabsStore.closeMultipleTab();
|
||||
keepAlive.setKeepAliveName();
|
||||
sessionStorage.setItem("contentType", "2");
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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 | "";
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user