瀏覽代碼

fix:逻辑图只看我

zqbao 5 月之前
父節點
當前提交
50c2defad4
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      services/sandbox/sandbox.go

+ 6 - 1
services/sandbox/sandbox.go

@@ -968,12 +968,17 @@ func GetSandboxClassifyByIsShowMe(classifyList []*sandbox.SandboxClassifyItems,
 	for _, v := range sanboxList {
 	for _, v := range sanboxList {
 		existClassify[v.SandboxClassifyId] = struct{}{}
 		existClassify[v.SandboxClassifyId] = struct{}{}
 	}
 	}
+	for _, v := range classifyList {
+		if v.SandboxId > 0 {
+			list = append(list, v)
+		}
+	}
 	classifyAll, err := sandbox.GetSandboxClassifyAllIncludeParent()
 	classifyAll, err := sandbox.GetSandboxClassifyAllIncludeParent()
 	if err != nil {
 	if err != nil {
 		return
 		return
 	}
 	}
 	classifyTree := sandbodClassifyTree(classifyAll, classifyId)
 	classifyTree := sandbodClassifyTree(classifyAll, classifyId)
-	list = GetClassifyListRemoveNoSandbox(classifyTree, existClassify)
+	list = append(list, GetClassifyListRemoveNoSandbox(classifyTree, existClassify)...)
 	return
 	return
 }
 }