mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🐛 剔除 新建文档存放位置 参数结尾的 / Fix https://github.com/siyuan-note/siyuan/issues/7315
This commit is contained in:
parent
e058890d8f
commit
3f0dd873fb
1 changed files with 6 additions and 0 deletions
|
|
@ -168,6 +168,12 @@ func setFiletree(c *gin.Context) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fileTree.DocCreateSavePath = strings.TrimSpace(fileTree.DocCreateSavePath)
|
||||||
|
for strings.HasSuffix(fileTree.DocCreateSavePath, "/") {
|
||||||
|
fileTree.DocCreateSavePath = strings.TrimSuffix(fileTree.DocCreateSavePath, "/")
|
||||||
|
fileTree.DocCreateSavePath = strings.TrimSpace(fileTree.DocCreateSavePath)
|
||||||
|
}
|
||||||
|
|
||||||
if 1 > fileTree.MaxOpenTabCount {
|
if 1 > fileTree.MaxOpenTabCount {
|
||||||
fileTree.MaxOpenTabCount = 8
|
fileTree.MaxOpenTabCount = 8
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue