This commit is contained in:
Vanessa 2023-09-21 11:15:49 +08:00
parent 2629e10b8e
commit 4030ae31a6

View file

@ -19,6 +19,7 @@ import {fetchPost} from "../util/fetch";
import {needSubscribe} from "../util/needSubscribe";
import * as dayjs from "dayjs";
import {commandPanel} from "../plugin/commandPanel";
import {exportLayout} from "./util";
export const initBar = (app: App) => {
const toolbarElement = document.getElementById("toolbar");
@ -115,7 +116,12 @@ export const initBar = (app: App) => {
event.stopPropagation();
break;
} else if (targetId === "barExit") {
exitSiYuan();
exportLayout({
reload: false,
onlyData: false,
errorExit: true,
cb: exitSiYuan
});
event.stopPropagation();
break;
} else if (targetId === "barMode") {