mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
完善
This commit is contained in:
parent
b172ce0ee2
commit
9bb159c90f
@ -75,7 +75,10 @@ export class BaseSysRoleService extends BaseService {
|
|||||||
await this.baseSysRoleDepartmentEntity.delete({ roleId });
|
await this.baseSysRoleDepartmentEntity.delete({ roleId });
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
departmentIds.map(async e => {
|
departmentIds.map(async e => {
|
||||||
return await this.baseSysRoleMenuEntity.save({ roleId, departmentId: e });
|
return await this.baseSysRoleMenuEntity.save({
|
||||||
|
roleId,
|
||||||
|
departmentId: e,
|
||||||
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
// 刷新权限
|
// 刷新权限
|
||||||
|
Loading…
Reference in New Issue
Block a user