Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Can't switch workspaces on mobile https://github.com/siyuan-note/siyuan/issues/16544 https://github.com/siyuan-note/siyuan/issues/16552

Daniel4cc998f2916f
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go
index 6663ba5da1..c0bf2de302 100644
--- a/kernel/api/workspace.go
+++ b/kernel/api/workspace.go
@@ -328,8 +328,10 @@ func setWorkspaceDir(c *gin.Context) {
return
}
- util.PushMsg(model.Conf.Language(42), 1000*15)
- time.Sleep(1 * time.Second)
+ if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container {
+ util.PushMsg(model.Conf.Language(42), 1000*15)
+ time.Sleep(2 * time.Second)
+ }
}
func isInvalidWorkspacePath(absPath string) bool {