mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
⚡ 改进创建文档性能 Fix https://github.com/siyuan-note/siyuan/issues/7175
This commit is contained in:
parent
258acc1142
commit
a3940c220f
5 changed files with 25 additions and 30 deletions
|
|
@ -50,11 +50,11 @@ func createDocsByHPath(boxID, hPath, content string) (id string, existed bool, e
|
|||
pathBuilder.WriteString(id)
|
||||
docP := pathBuilder.String() + ".sy"
|
||||
if isNotLast {
|
||||
if err = createDoc(boxID, docP, part, ""); nil != err {
|
||||
if _, err = createDoc(boxID, docP, part, ""); nil != err {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if err = createDoc(boxID, docP, part, content); nil != err {
|
||||
if _, err = createDoc(boxID, docP, part, content); nil != err {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue