Browse Source

:bug: 桌面端删除当前工作空间后报错 Fix https://github.com/siyuan-note/siyuan/issues/7035

Liang Ding 2 years ago
parent
commit
7f82ea8fd7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/api/workspace.go

+ 1 - 1
kernel/api/workspace.go

@@ -106,7 +106,7 @@ func removeWorkspaceDir(c *gin.Context) {
 		return
 	}
 
-	if util.WorkspaceDir == path {
+	if util.WorkspaceDir == path && (util.ContainerIOS == util.Container || util.ContainerAndroid == util.Container) {
 		os.Exit(util.ExitCodeOk)
 	}
 }