diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index af20f6adf..9e5f6ea44 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -20,7 +20,7 @@ export const lockScreen = () => { /// #else ipcRenderer.send(Constants.SIYUAN_LOCK_SCREEN); /// #endif -} +}; export const lockFile = (id: string) => { const html = `
diff --git a/app/src/layout/status.ts b/app/src/layout/status.ts index b6e20b346..ed59110e5 100644 --- a/app/src/layout/status.ts +++ b/app/src/layout/status.ts @@ -1,7 +1,7 @@ /// #if !MOBILE import {getAllDocks} from "./getAll"; import {updateHotkeyTip} from "../protyle/util/compatibility"; -import {exportLayout, getDockByType, resizeTabs} from "./util"; +import {getDockByType, resizeTabs} from "./util"; import {hasClosestByClassName} from "../protyle/util/hasClosest"; import {fetchPost} from "../util/fetch"; import {mountHelp} from "../util/mount"; @@ -84,7 +84,7 @@ export const initStatus = () => { event.stopPropagation(); break; } else if (target.id === "barLock") { - lockScreen() + lockScreen(); event.stopPropagation(); break; } else if (target.id === "barHelp") { diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts index 31440d9ae..53363e626 100644 --- a/app/src/protyle/header/Title.ts +++ b/app/src/protyle/header/Title.ts @@ -214,7 +214,7 @@ export class Title { click: async () => { focusByRange(getEditorRange(this.editElement)); // 不能使用 execCommand https://github.com/siyuan-note/siyuan/issues/7045 - const text = await readText() + const text = await readText(); document.execCommand("insertText", false, replaceFileName(text)); this.rename(protyle); } diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts index f9cad2c50..aa23bafa1 100644 --- a/app/src/util/globalShortcut.ts +++ b/app/src/util/globalShortcut.ts @@ -11,7 +11,7 @@ import { import {newFile} from "./newFile"; import {Constants} from "../constants"; import {openSetting} from "../config"; -import {exportLayout, getDockByType, getInstanceById} from "../layout/util"; +import {getDockByType, getInstanceById} from "../layout/util"; import {Tab} from "../layout/Tab"; import {Editor} from "../editor"; import {setEditMode} from "../protyle/util/setEditMode"; @@ -535,7 +535,7 @@ export const globalShortcut = () => { return; } if (matchHotKey(window.siyuan.config.keymap.general.lockScreen.custom, event)) { - lockScreen() + lockScreen(); event.preventDefault(); return; }