更新菜单控制器

This commit is contained in:
lzw
2021-10-16 13:01:16 +08:00
parent 030d5c6b50
commit 0af9865d97
3 changed files with 5 additions and 6 deletions

View File

@@ -102,8 +102,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
public async Task<Result> AddChildrenMenu(ChildrenDto<menu> childrenDto)
{
var _menu = await _menuService.GetEntityById(childrenDto.parentId);
var _children= await _menuService.AddChildrenMenu(_menu);
_children = childrenDto.data;
var _children= await _menuService.AddChildrenMenu(_menu,childrenDto.data);
return Result.Success();
}