Vanessa 2025-12-09 16:45:04 +08:00
parent ddae80a5f4
commit 3ac342dcf3
2 changed files with 13 additions and 2 deletions

View file

@ -301,7 +301,12 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => {
window.JSAndroid.exit();
return;
}
if (isInIOS() || isInHarmony()) {
if (isInIOS()) {
window.webkit.messageHandlers.exit.postMessage();
return;
}
if (isInHarmony()) {
window.location.href = "siyuan://api/system/exit";
}
/// #endif
@ -352,7 +357,12 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => {
window.JSAndroid.exit();
return;
}
if (isInIOS() || isInHarmony()) {
if (isInIOS()) {
window.webkit.messageHandlers.exit.postMessage();
return;
}
if (isInHarmony()) {
window.location.href = "siyuan://api/system/exit";
}
/// #endif