fix: 修复角色无法删除的bug

pull/244/head^2^2
xiaojunnuo 2024-11-15 10:29:02 +08:00
parent 8f22a358cf
commit 66629a591a
1 changed files with 1 additions and 0 deletions

View File

@ -135,5 +135,6 @@ export class RoleService extends BaseService<RoleEntity> {
if (urs.length > 0) {
throw new Error('该角色已被用户使用,无法删除');
}
await this.deleteWhere({ id: In(idArr) });
}
}