更新添加子菜单

This commit is contained in:
lzw
2021-10-16 13:34:05 +08:00
parent 0af9865d97
commit 6a492168ed
3 changed files with 6 additions and 7 deletions

View File

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