diff --git a/src/modules/base/service/sys/menu.ts b/src/modules/base/service/sys/menu.ts index c1d1d36..3d60d4a 100644 --- a/src/modules/base/service/sys/menu.ts +++ b/src/modules/base/service/sys/menu.ts @@ -122,8 +122,8 @@ export class BaseSysMenuService extends BaseService { ); } find.orderBy('a.orderNum', 'ASC'); - find.groupBy('a.id'); - return await find.getMany(); + const list = await find.getMany(); + return _.uniqBy(list, 'id'); } /**