This commit is contained in:
Daniel 2024-01-07 15:27:20 +08:00
parent 69f2eeb625
commit e4cee23592
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
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