mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 不记录用户指南滚动位置
This commit is contained in:
parent
33962b0694
commit
8286c46365
1 changed files with 3 additions and 4 deletions
|
|
@ -57,10 +57,9 @@ func setBlockAttrs(c *gin.Context) {
|
|||
|
||||
id := arg["id"].(string)
|
||||
attrs := arg["attrs"].(map[string]interface{})
|
||||
if 1 == len(attrs) && "" != attrs["scroll"] && "dev" == util.Mode {
|
||||
// 开发环境不记录用户指南滚动位置
|
||||
b := treenode.GetBlockTree(id)
|
||||
if nil != b && (model.IsUserGuide(b.BoxID)) {
|
||||
if 1 == len(attrs) && "" != attrs["scroll"] {
|
||||
// 不记录用户指南滚动位置
|
||||
if b := treenode.GetBlockTree(id); nil != b && (model.IsUserGuide(b.BoxID)) {
|
||||
attrs["scroll"] = ""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue