🎨 Improve exit

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-09 20:09:17 +08:00
parent c4326bd9d9
commit e1aa372f87
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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