bugfix :: clear setting & logout >> setting null exception.
This commit is contained in:
parent
9b02d4bbfb
commit
4900ba729c
|
@ -118,21 +118,23 @@ export class AppAuthenticationService {
|
|||
environment.customConfig.appKey
|
||||
);
|
||||
|
||||
appUserInfo = {
|
||||
...appUserInfo,
|
||||
settings: {
|
||||
...appUserInfo.settings,
|
||||
general: {
|
||||
...appUserInfo.settings.general,
|
||||
autoLogin: false
|
||||
if (!!appUserInfo) {
|
||||
appUserInfo = {
|
||||
...appUserInfo,
|
||||
settings: {
|
||||
...appUserInfo.settings,
|
||||
general: {
|
||||
...appUserInfo.settings.general,
|
||||
autoLogin: false
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
this.localStorageService.encSet<AppUserInfo>(
|
||||
KEY_APP_USER_INFO,
|
||||
appUserInfo,
|
||||
environment.customConfig.appKey
|
||||
);
|
||||
this.localStorageService.encSet<AppUserInfo>(
|
||||
KEY_APP_USER_INFO,
|
||||
appUserInfo,
|
||||
environment.customConfig.appKey
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user