🎨 Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751

This commit is contained in:
Daniel 2023-11-30 20:04:51 +08:00
parent d7d4f4d0de
commit 4f50a8b06d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 52 additions and 29 deletions

View file

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