🎨 Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443

This commit is contained in:
Daniel 2024-03-04 15:57:35 +08:00
parent 3ce6e4824b
commit cb726e0118
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 62 additions and 43 deletions

View file

@ -299,7 +299,8 @@ func renderTemplate(p, id string, preview bool) (string, error) {
}
} else {
// 预览时使用简单表格渲染
view, getErr := attrView.GetCurrentView()
viewID := n.IALAttr(av.NodeAttrView)
view, getErr := attrView.GetCurrentView(viewID)
if nil != getErr {
logging.LogErrorf("get attribute view [%s] failed: %s", n.AttributeViewID, getErr)
return ast.WalkContinue