bug fixed
This commit is contained in:
parent
30998105b0
commit
4d0b7690ce
|
@ -32,7 +32,5 @@ export class LoginPageComponent implements OnInit, OnDestroy {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {}
|
||||||
throw new Error('Method not implemented.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,12 @@ export class AppService {
|
||||||
initialize(): Promise<void[]> {
|
initialize(): Promise<void[]> {
|
||||||
const initSession = new Promise<void>(async (resolve, reject) => {
|
const initSession = new Promise<void>(async (resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
|
let loginSession = this.sessionStorageService.get<LoginSession>(
|
||||||
|
AppKey.LoginSession
|
||||||
|
);
|
||||||
|
|
||||||
|
loginSession = loginSession || {};
|
||||||
|
|
||||||
let deviceType: DeviceType;
|
let deviceType: DeviceType;
|
||||||
let desktopType: DesktopType;
|
let desktopType: DesktopType;
|
||||||
|
|
||||||
|
@ -60,6 +66,7 @@ export class AppService {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sessionStorageService.set<LoginSession>(AppKey.LoginSession, {
|
this.sessionStorageService.set<LoginSession>(AppKey.LoginSession, {
|
||||||
|
...loginSession,
|
||||||
deviceType,
|
deviceType,
|
||||||
desktopType,
|
desktopType,
|
||||||
companyGroupCode: this.companyGroupCode
|
companyGroupCode: this.companyGroupCode
|
||||||
|
|
Loading…
Reference in New Issue
Block a user