zhangqian
2024-03-29 18939d88db4799b2ba0359016d9a4ae1e76e2a22
controllers/location.go
@@ -103,7 +103,10 @@
            tree = append(tree, location)
            continue
         }
         m[location.ParentId].Children = make([]*models.Location, 0)
         if m[location.ParentId].Children == nil {
            m[location.ParentId].Children = make([]*models.Location, 0)
         }
         m[location.ParentId].Children = append(m[location.ParentId].Children, location)
      }
   }