mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -318,7 +318,12 @@ func getRefText(c *gin.Context) {
|
||||
|
||||
id := arg["id"].(string)
|
||||
model.WaitForWritingFiles()
|
||||
ret.Data = model.GetBlockRefText(id)
|
||||
refText := model.GetBlockRefText(id)
|
||||
if "" == refText {
|
||||
// 空块返回 id https://github.com/siyuan-note/siyuan/issues/10259
|
||||
refText = id
|
||||
}
|
||||
ret.Data = refText
|
||||
}
|
||||
|
||||
func getRefIDs(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user