mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🧑💻 Add an internal kernel API /api/av/reloadAttributeView
https://github.com/siyuan-note/siyuan/issues/14491
Add an internal kernel API `/api/editor/reloadProtyle` https://github.com/siyuan-note/siyuan/issues/14492
This commit is contained in:
parent
78d86629c8
commit
31312bd7c0
7 changed files with 60 additions and 19 deletions
|
@ -27,19 +27,6 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func reloadAttributeView(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
model.ReloadAttrView(id)
|
||||
}
|
||||
|
||||
func duplicateAttributeViewBlock(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue