bugfix
This commit is contained in:
parent
f9dc3d4f16
commit
ac8e9dc325
|
@ -209,7 +209,8 @@ export class OrganizationComponent
|
||||||
.pipe(
|
.pipe(
|
||||||
take(1),
|
take(1),
|
||||||
select(AppStore.AccountSelector.AuthenticationSelector.loginRes),
|
select(AppStore.AccountSelector.AuthenticationSelector.loginRes),
|
||||||
map(loginRes => {
|
tap(loginRes => {
|
||||||
|
if (!!loginRes) {
|
||||||
this.store.dispatch(
|
this.store.dispatch(
|
||||||
QueryStore.myDeptUser({
|
QueryStore.myDeptUser({
|
||||||
divCd: 'ORG',
|
divCd: 'ORG',
|
||||||
|
@ -221,15 +222,14 @@ export class OrganizationComponent
|
||||||
senderEmployeeType: loginRes.userInfo.employeeType
|
senderEmployeeType: loginRes.userInfo.employeeType
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
return loginRes;
|
|
||||||
}),
|
|
||||||
map(loginRes => {
|
|
||||||
this.loginRes = loginRes;
|
|
||||||
this.selectedDepartmentName = {
|
this.selectedDepartmentName = {
|
||||||
name: loginRes.userInfo.deptName,
|
name: loginRes.userInfo.deptName,
|
||||||
nameEn: loginRes.userInfo.deptNameEn,
|
nameEn: loginRes.userInfo.deptNameEn,
|
||||||
nameCn: loginRes.userInfo.deptNameCn
|
nameCn: loginRes.userInfo.deptNameCn
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
this.loginRes = loginRes;
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user