mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 The old version of the application no longer supports opening the new version of the document https://github.com/siyuan-note/siyuan/issues/16505
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
9e075581ff
commit
b5c84f2354
21 changed files with 114 additions and 41 deletions
|
|
@ -28,6 +28,7 @@ import (
|
|||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/filesys"
|
||||
"github.com/siyuan-note/siyuan/kernel/model"
|
||||
"github.com/siyuan-note/siyuan/kernel/treenode"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
|
|
@ -660,6 +661,10 @@ func getBlockInfo(c *gin.Context) {
|
|||
ret.Code = 3
|
||||
ret.Msg = model.Conf.Language(56)
|
||||
return
|
||||
} else if errors.Is(err, treenode.ErrSpecTooNew) {
|
||||
ret.Code = -1
|
||||
ret.Msg = model.Conf.Language(275)
|
||||
return
|
||||
}
|
||||
|
||||
block, _ := model.GetBlock(id, tree)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue