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