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

This commit is contained in:
Liang Ding 2023-01-11 22:18:22 +08:00
parent cdb6077c3f
commit 7f82ea8fd7
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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)
}
}