diff --git a/kernel/av/av.go b/kernel/av/av.go index 13b145a07..63ac63bcc 100644 --- a/kernel/av/av.go +++ b/kernel/av/av.go @@ -40,9 +40,9 @@ type AttributeView struct { Rows []*Row `json:"rows"` // 表格行记录 Type AttributeViewType `json:"type"` // 属性视图类型 - Projections []string `json:"projections"` // 显示的列名,SELECT * - Filters []*AttributeViewFilter `json:"filters"` // 过滤规则,WHERE ... - Sorts []*AttributeViewSort `json:"sorts"` // 排序规则,ORDER BY ... + Projections []string `json:"projections"` // 显示的列名 + Filters []*AttributeViewFilter `json:"filters"` // 过滤规则 + Sorts []*AttributeViewSort `json:"sorts"` // 排序规则 } // AttributeViewType 描述了属性视图的类型。 diff --git a/kernel/sql/database.go b/kernel/sql/database.go index aa25948e4..ef74fb62b 100644 --- a/kernel/sql/database.go +++ b/kernel/sql/database.go @@ -710,7 +710,7 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes markdown = treenode.ExportNodeStdMd(n, luteEngine) content = treenode.NodeStaticContent(n, nil, true, indexAssetPath) fc := treenode.FirstLeafBlock(n) - fcontent = treenode.NodeStaticContent(fc, nil, false, false) + fcontent = treenode.NodeStaticContent(fc, nil, true, false) parentID = n.Parent.ID // 将标题块作为父节点 if h := heading(n); nil != h {