An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 剔除 `新建文档存放位置` 参数结尾的 `/` Fix https://github.com/siyuan-note/siyuan/issues/7315
Liang Ding95cf1d8a0042
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex cf676be22d..e8e9b9522f 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -168,6 +168,12 @@ func InitConf() {if 32 < Conf.FileTree.MaxOpenTabCount {Conf.FileTree.MaxOpenTabCount = 32}+ Conf.FileTree.DocCreateSavePath = strings.TrimSpace(Conf.FileTree.DocCreateSavePath)+ for strings.HasSuffix(Conf.FileTree.DocCreateSavePath, "/") {+ Conf.FileTree.DocCreateSavePath = strings.TrimSuffix(Conf.FileTree.DocCreateSavePath, "/")+ Conf.FileTree.DocCreateSavePath = strings.TrimSpace(Conf.FileTree.DocCreateSavePath)+ }+if nil == Conf.Tag {Conf.Tag = conf.NewTag()}