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