mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
4744429550
commit
c287dd080b
3 changed files with 17 additions and 5 deletions
|
|
@ -845,9 +845,15 @@ func setAttributeViewBlockAttr(c *gin.Context) {
|
|||
|
||||
avID := arg["avID"].(string)
|
||||
keyID := arg["keyID"].(string)
|
||||
rowID := arg["rowID"].(string) // 即 ItemID
|
||||
var itemID string
|
||||
if _, ok := arg["itemID"]; ok {
|
||||
itemID = arg["itemID"].(string)
|
||||
} else if _, ok := arg["rowID"]; ok {
|
||||
// TODO 划于 2026 年 6 月 30 日后删除 https://github.com/siyuan-note/siyuan/issues/15308#issuecomment-3077675356
|
||||
itemID = arg["rowID"].(string)
|
||||
}
|
||||
value := arg["value"].(interface{})
|
||||
updatedVal, err := model.UpdateAttributeViewCell(nil, avID, keyID, rowID, value)
|
||||
updatedVal, err := model.UpdateAttributeViewCell(nil, avID, keyID, itemID, value)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue