浏览代码

:art: Subdocuments created by the database are not displayed in the doc tree https://github.com/siyuan-note/siyuan/issues/9091

Daniel 1 年之前
父节点
当前提交
02a4eaa73b
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      kernel/api/filetree.go

+ 5 - 1
kernel/api/filetree.go

@@ -510,6 +510,10 @@ func createDocWithMd(c *gin.Context) {
 	}
 	ret.Data = id
 
+	if !showInDocTree {
+		return
+	}
+
 	box := model.Conf.Box(notebook)
 	b, _ := model.GetBlock(id, nil)
 	p := b.Path
@@ -648,7 +652,7 @@ func listDocsByPath(c *gin.Context) {
 			maxListCount = math.MaxInt
 		}
 	}
-	showHidden := true
+	showHidden := false
 	if arg["showHidden"] != nil {
 		showHidden = arg["showHidden"].(bool)
 	}