优化菜单、省市区树结构排序,修复部门搜索空指针问题

This commit is contained in:
孟帅
2023-07-03 11:23:40 +08:00
parent 4a06a895b3
commit cc3ab9acec
18 changed files with 438 additions and 426 deletions

View File

@@ -79,7 +79,7 @@ func (c *cDept) List(ctx context.Context, req *dept.ListReq) (res *dept.ListRes,
}
data, err := service.AdminDept().List(ctx, in)
if err != nil {
if err != nil || data == nil {
return
}

View File

@@ -62,6 +62,6 @@ func (c *cMenu) List(ctx context.Context, req *menu.ListReq) (res menu.ListRes,
return
}
res.List, err = service.AdminMenu().List(ctx, in)
res.MenuListModel, err = service.AdminMenu().List(ctx, in)
return
}