This commit is contained in:
Daniel
2024-01-07 15:27:20 +08:00
parent 69f2eeb625
commit e4cee23592
4 changed files with 0 additions and 16 deletions

View File

@@ -329,10 +329,6 @@ func setNotebookConf(c *gin.Context) {
if "../" == boxConf.DocCreateSavePath {
boxConf.DocCreateSavePath = "../Untitled"
}
for strings.HasSuffix(boxConf.DocCreateSavePath, "/") {
boxConf.DocCreateSavePath = strings.TrimSuffix(boxConf.DocCreateSavePath, "/")
boxConf.DocCreateSavePath = strings.TrimSpace(boxConf.DocCreateSavePath)
}
box.SaveConf(boxConf)
ret.Data = boxConf