mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
2629e10b8e
commit
4030ae31a6
1 changed files with 7 additions and 1 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue