diff --git a/src/modules/base/service/sys/role.ts b/src/modules/base/service/sys/role.ts index 95b494d..27050df 100644 --- a/src/modules/base/service/sys/role.ts +++ b/src/modules/base/service/sys/role.ts @@ -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, + }); }) ); // 刷新权限