mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
🎨 移动端支持多工作空间 https://github.com/siyuan-note/siyuan/issues/4642
This commit is contained in:
parent
a9cb87787e
commit
ceac827a7f
@ -207,7 +207,7 @@ func initWorkspaceDir(workspaceArg string) {
|
|||||||
WorkspaceDir = workspaceArg
|
WorkspaceDir = workspaceArg
|
||||||
}
|
}
|
||||||
if !gulu.File.IsDir(WorkspaceDir) {
|
if !gulu.File.IsDir(WorkspaceDir) {
|
||||||
log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir)
|
log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", defaultWorkspaceDir, WorkspaceDir)
|
||||||
WorkspaceDir = defaultWorkspaceDir
|
WorkspaceDir = defaultWorkspaceDir
|
||||||
}
|
}
|
||||||
workspacePaths = append(workspacePaths, WorkspaceDir)
|
workspacePaths = append(workspacePaths, WorkspaceDir)
|
||||||
|
@ -93,7 +93,7 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {
|
|||||||
if 0 < len(workspacePaths) {
|
if 0 < len(workspacePaths) {
|
||||||
WorkspaceDir = workspacePaths[len(workspacePaths)-1]
|
WorkspaceDir = workspacePaths[len(workspacePaths)-1]
|
||||||
if !gulu.File.IsDir(WorkspaceDir) {
|
if !gulu.File.IsDir(WorkspaceDir) {
|
||||||
log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir)
|
log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", defaultWorkspaceDir, WorkspaceDir)
|
||||||
WorkspaceDir = defaultWorkspaceDir
|
WorkspaceDir = defaultWorkspaceDir
|
||||||
}
|
}
|
||||||
workspacePaths[len(workspacePaths)-1] = WorkspaceDir
|
workspacePaths[len(workspacePaths)-1] = WorkspaceDir
|
||||||
|
Loading…
Reference in New Issue
Block a user