bug fixed

This commit is contained in:
richard-loafle 2020-04-03 16:57:31 +09:00
parent 30998105b0
commit 4d0b7690ce
2 changed files with 8 additions and 3 deletions

View File

@ -32,7 +32,5 @@ export class LoginPageComponent implements OnInit, OnDestroy {
);
}
ngOnDestroy(): void {
throw new Error('Method not implemented.');
}
ngOnDestroy(): void {}
}

View File

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