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

This commit is contained in:
xiaojunnuo
2024-11-15 10:29:02 +08:00
parent 8f22a358cf
commit 66629a591a
@@ -135,5 +135,6 @@ export class RoleService extends BaseService<RoleEntity> {
if (urs.length > 0) {
throw new Error('该角色已被用户使用,无法删除');
}
await this.deleteWhere({ id: In(idArr) });
}
}