mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Improve exit
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
c4326bd9d9
commit
e1aa372f87
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue