xyxie 1 year ago
parent
commit
c539361a3b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      services/data/edb_classify.go

+ 1 - 0
services/data/edb_classify.go

@@ -303,6 +303,7 @@ func AddEdbClassify(classifyName string, parentId, level int, classifyType uint8
 		return
 	}
 	if parentId == 0 { //一级目录的rootId等于自己本身
+		classifyInfo.ClassifyId = int(newId)
 		classifyInfo.RootId = int(newId)
 		err = classifyInfo.Update([]string{"RootId"})
 		if err != nil {