mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
🎨 Improve getRefText https://github.com/siyuan-note/siyuan/issues/10259
This commit is contained in:
parent
66acf8576d
commit
fac354c23c
1 changed files with 6 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue