Ver Fonte

:art: 移动端支持多工作空间 https://github.com/siyuan-note/siyuan/issues/4642

Liang Ding há 2 anos atrás
pai
commit
ceac827a7f
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      kernel/util/working.go
  2. 1 1
      kernel/util/working_mobile.go

+ 1 - 1
kernel/util/working.go

@@ -207,7 +207,7 @@ func initWorkspaceDir(workspaceArg string) {
 			WorkspaceDir = workspaceArg
 		}
 		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
 		}
 		workspacePaths = append(workspacePaths, WorkspaceDir)

+ 1 - 1
kernel/util/working_mobile.go

@@ -93,7 +93,7 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {
 		if 0 < len(workspacePaths) {
 			WorkspaceDir = workspacePaths[len(workspacePaths)-1]
 			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
 			}
 			workspacePaths[len(workspacePaths)-1] = WorkspaceDir