This commit is contained in:
COOL 2023-04-17 00:26:29 +08:00
parent b172ce0ee2
commit 9bb159c90f

View File

@ -75,7 +75,10 @@ export class BaseSysRoleService extends BaseService {
await this.baseSysRoleDepartmentEntity.delete({ roleId });
await Promise.all(
departmentIds.map(async e => {
return await this.baseSysRoleMenuEntity.save({ roleId, departmentId: e });
return await this.baseSysRoleMenuEntity.save({
roleId,
departmentId: e,
});
})
);
// 刷新权限