mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
♻️ 一些工具函数移动到 gulu 项目中
This commit is contained in:
parent
afbe434239
commit
705f34ccd1
10 changed files with 20 additions and 65 deletions
|
|
@ -84,8 +84,8 @@ func setWorkspaceDir(c *gin.Context) {
|
|||
}
|
||||
|
||||
workspacePaths = append(workspacePaths, path)
|
||||
workspacePaths = util.RemoveDuplicatedElem(workspacePaths)
|
||||
workspacePaths = util.RemoveElem(workspacePaths, path)
|
||||
workspacePaths = gulu.Str.RemoveDuplicatedElem(workspacePaths)
|
||||
workspacePaths = gulu.Str.RemoveElem(workspacePaths, path)
|
||||
workspacePaths = append(workspacePaths, path) // 切换的工作空间固定放在最后一个
|
||||
|
||||
if data, err = gulu.JSON.MarshalJSON(workspacePaths); nil != err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue