diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index aebba4307..9a5d4ff71 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -307,7 +307,8 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => { } if (isInHarmony()) { - window.location.href = "siyuan://api/system/exit"; + window.JSHarmony.exit(); + return; } /// #endif }); @@ -363,7 +364,8 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => { } if (isInHarmony()) { - window.location.href = "siyuan://api/system/exit"; + window.JSHarmony.exit(); + return; } /// #endif }