mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 移动端支持重新打开已经移除的工作空间 https://github.com/siyuan-note/siyuan/issues/7353
This commit is contained in:
parent
6304d6d7c0
commit
b0cd23245c
1 changed files with 5 additions and 4 deletions
|
|
@ -134,17 +134,18 @@ func getMobileWorkspaces(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var names []string
|
var paths []string
|
||||||
for _, dir := range dirs {
|
for _, dir := range dirs {
|
||||||
if dir.IsDir() {
|
if dir.IsDir() {
|
||||||
if isInvalidWorkspacePath(filepath.Join(root, dir.Name())) {
|
absPath := filepath.Join(root, dir.Name())
|
||||||
|
if isInvalidWorkspacePath(absPath) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
names = append(names, dir.Name())
|
paths = append(paths, absPath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret.Data = names
|
ret.Data = paths
|
||||||
}
|
}
|
||||||
|
|
||||||
func getWorkspaces(c *gin.Context) {
|
func getWorkspaces(c *gin.Context) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue