소스 검색

menu tree

terry 3 년 전
부모
커밋
7889184031
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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]