mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
This commit is contained in:
parent
b0377a168b
commit
dab5377a4b
7 changed files with 50 additions and 20 deletions
|
|
@ -3,11 +3,11 @@ import {fetchPost} from "../util/fetch";
|
|||
/// #if !MOBILE
|
||||
import {getAllModels} from "../layout/getAll";
|
||||
import {ipcRenderer} from "electron";
|
||||
import {exportLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {showMessage} from "./message";
|
||||
import {Dialog} from "./index";
|
||||
import {isMobile} from "../util/functions";
|
||||
import {exportLayout} from "../layout/util";
|
||||
|
||||
export const lockFile = (id: string) => {
|
||||
const html = `<div class="b3-dialog__scrim"></div>
|
||||
|
|
@ -134,9 +134,13 @@ export const transactionError = (data: { code: number, data: string }) => {
|
|||
});
|
||||
const btnsElement = dialog.element.querySelectorAll(".b3-button");
|
||||
btnsElement[0].addEventListener("click", () => {
|
||||
/// #if MOBILE
|
||||
exitSiYuan();
|
||||
/// #else
|
||||
exportLayout(false, () => {
|
||||
exitSiYuan();
|
||||
});
|
||||
/// #endif
|
||||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
fetchPost("/api/filetree/refreshFiletree", {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue