🎨 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

@ -116,7 +116,12 @@ func renderAttributeView(c *gin.Context) {
}
id := arg["id"].(string)
view, attrView, err := model.RenderAttributeView(id)
viewIDArg := arg["viewID"]
var viewID string
if nil != viewIDArg {
viewID = viewIDArg.(string)
}
view, attrView, err := model.RenderAttributeView(id, viewID)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()