This commit is contained in:
Vanessa 2023-04-05 09:34:46 +08:00
parent 7f2e6202de
commit 67a0efee1b
6 changed files with 11 additions and 1 deletions

View file

@ -9,6 +9,7 @@ import {blockRender} from "../../protyle/markdown/blockRender";
import {disabledForeverProtyle, disabledProtyle, enableProtyle} from "../../protyle/util/onGet";
import {setStorageVal} from "../../protyle/util/compatibility";
import {closePanel} from "./closePanel";
import {showMessage} from "../../dialog/message";
const forwardStack: IBackStack[] = [];
@ -133,7 +134,11 @@ export const goBack = () => {
return;
}
if (window.JSAndroid && window.siyuan.backStack.length < 1) {
window.JSAndroid.returnDesktop();
if (document.querySelector('#message [data-id="exitTip"]')) {
window.JSAndroid.returnDesktop();
} else {
showMessage(window.siyuan.languages.returnDesktop, 3000, "info", "exitTip");
}
return;
}
if (window.siyuan.backStack.length < 1) {