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 { ngOnDestroy(): void {}
throw new Error('Method not implemented.');
}
} }

View File

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