Browse Source

menu tree

terry 2 năm trước cách đây
mục cha
commit
7889184031
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/system/service/menuService.go

+ 1 - 0
app/system/service/menuService.go

@@ -138,6 +138,7 @@ func menuTreeDfs(result []model.MenuTreeDetail, menus []dao.Menu, tmp map[int64]
 		detail := model.MenuTreeDetail{}
 		detail.Title = child.Name
 		detail.ID = strconv.FormatInt(child.ID, 10)
+		detail.ParentId = strconv.FormatInt(child.ParentId, 10)
 		detail.Key = strconv.FormatInt(child.ID, 10)
 		detail.Value = strconv.FormatInt(child.ID, 10)
 		childes, isExist := tmp[child.ID]