|
|
|
@ -30,7 +30,7 @@ export class SessionStateService { |
|
|
|
private init() { |
|
|
|
const session = localStorage.getItem('abpSession'); |
|
|
|
if (session) { |
|
|
|
this.store.patch(JSON.parse(session)); |
|
|
|
this.store.set(JSON.parse(session)); |
|
|
|
} |
|
|
|
|
|
|
|
this.store.sliceUpdate(state => state).subscribe(this.updateLocalStorage); |
|
|
|
@ -81,7 +81,7 @@ export class SessionStateService { |
|
|
|
setTenant(tenant: CurrentTenantDto) { |
|
|
|
if (compare(tenant, this.store.state.tenant)) return; |
|
|
|
|
|
|
|
this.store.patch({ tenant }); |
|
|
|
this.store.set({ ...this.store.state, tenant }); |
|
|
|
} |
|
|
|
|
|
|
|
setLanguage(language: string) { |
|
|
|
|