save LOGIN_RES info in sessionstorage
This commit is contained in:
parent
f4f986944b
commit
b49a8313a9
|
@ -45,6 +45,7 @@ import * as OptionStore from '@app/store/messenger/option';
|
||||||
import * as QueryStore from '@app/store/messenger/query';
|
import * as QueryStore from '@app/store/messenger/query';
|
||||||
import * as SyncStore from '@app/store/messenger/sync';
|
import * as SyncStore from '@app/store/messenger/sync';
|
||||||
import { VerInfo2, KEY_VER_INFO } from '@app/types/ver-info.type';
|
import { VerInfo2, KEY_VER_INFO } from '@app/types/ver-info.type';
|
||||||
|
import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AppMessengerResolver implements Resolve<void> {
|
export class AppMessengerResolver implements Resolve<void> {
|
||||||
|
@ -114,6 +115,11 @@ export class AppMessengerResolver implements Resolve<void> {
|
||||||
}),
|
}),
|
||||||
switchMap(res => {
|
switchMap(res => {
|
||||||
loginRes = res;
|
loginRes = res;
|
||||||
|
|
||||||
|
this.sessionStorageService.set<LoginResponse>(KEY_LOGIN_RES_INFO, {
|
||||||
|
...loginRes
|
||||||
|
});
|
||||||
|
|
||||||
return forkJoin([
|
return forkJoin([
|
||||||
this.queryProtocolService.auth({
|
this.queryProtocolService.auth({
|
||||||
deviceType: environmentsInfo.deviceType
|
deviceType: environmentsInfo.deviceType
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
export const KEY_LOGIN_RES_INFO = 'ucap::LOGIN_RES_INFO';
|
Loading…
Reference in New Issue
Block a user