From e1aa372f8774b4e1fbe64484b45f0ac65d471a1f Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 9 Dec 2025 20:09:17 +0800 Subject: [PATCH] :art: Improve exit Signed-off-by: Daniel <845765@qq.com> --- app/src/dialog/processSystem.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }