diff --git a/app/src/layout/dock/Bookmark.ts b/app/src/layout/dock/Bookmark.ts index b204f22e7..e951c5969 100644 --- a/app/src/layout/dock/Bookmark.ts +++ b/app/src/layout/dock/Bookmark.ts @@ -8,7 +8,6 @@ import {updateHotkeyTip} from "../../protyle/util/compatibility"; import {openFileById} from "../../editor/util"; import {Constants} from "../../constants"; import {Dialog} from "../../dialog"; -import {isMobile} from "../../util/functions"; import {confirmDialog} from "../../dialog/confirmDialog"; import {escapeHtml} from "../../util/escape"; diff --git a/app/src/layout/dock/Tag.ts b/app/src/layout/dock/Tag.ts index 28c3c1e8f..b8ff8ee24 100644 --- a/app/src/layout/dock/Tag.ts +++ b/app/src/layout/dock/Tag.ts @@ -7,7 +7,6 @@ import {updateHotkeyTip} from "../../protyle/util/compatibility"; import {openGlobalSearch} from "../../search/util"; import {MenuItem} from "../../menus/Menu"; import {Dialog} from "../../dialog"; -import {isMobile} from "../../util/functions"; import {confirmDialog} from "../../dialog/confirmDialog"; import {escapeHtml} from "../../util/escape"; diff --git a/app/src/mobile/util/MobileBookmarks.ts b/app/src/mobile/util/MobileBookmarks.ts index 90c0e7668..7d86bc4d4 100644 --- a/app/src/mobile/util/MobileBookmarks.ts +++ b/app/src/mobile/util/MobileBookmarks.ts @@ -6,7 +6,6 @@ import {openMobileFileById} from "../editor"; import {confirmDialog} from "../../dialog/confirmDialog"; import {escapeHtml} from "../../util/escape"; import {Dialog} from "../../dialog"; -import {isMobile} from "../../util/functions"; export class MobileBookmarks { public element: HTMLElement; @@ -111,7 +110,7 @@ export class MobileBookmarks { } public update() { - this.element.lastElementChild.classList.remove("fn__none") + this.element.lastElementChild.classList.remove("fn__none"); fetchPost("/api/bookmark/getBookmark", {}, response => { if (this.openNodes) { this.openNodes = this.tree.getExpandIds(); @@ -122,7 +121,7 @@ export class MobileBookmarks { } else { this.openNodes = this.tree.getExpandIds(); } - this.element.lastElementChild.classList.add("fn__none") + this.element.lastElementChild.classList.add("fn__none"); }); } } diff --git a/app/src/mobile/util/MobileTags.ts b/app/src/mobile/util/MobileTags.ts index 8325f44fd..1af7832b9 100644 --- a/app/src/mobile/util/MobileTags.ts +++ b/app/src/mobile/util/MobileTags.ts @@ -154,7 +154,7 @@ export class MobileTags { } public update() { - this.element.lastElementChild.classList.remove("fn__none") + this.element.lastElementChild.classList.remove("fn__none"); fetchPost("/api/tag/getTag", { sort: window.siyuan.config.tag.sort }, response => { @@ -167,7 +167,7 @@ export class MobileTags { } else { this.openNodes = this.tree.getExpandIds(); } - this.element.lastElementChild.classList.add("fn__none") + this.element.lastElementChild.classList.add("fn__none"); }); } } diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts index 0b35e3c6b..704f8aac6 100644 --- a/app/src/mobile/util/initFramework.ts +++ b/app/src/mobile/util/initFramework.ts @@ -23,8 +23,8 @@ export const initFramework = () => { const sidebarElement = document.getElementById("sidebar"); let outline: MobileOutline; let backlink: MobileBacklinks; - let bookmark: MobileBookmarks - let tag: MobileTags + let bookmark: MobileBookmarks; + let tag: MobileTags; sidebarElement.querySelector(".toolbar--border").addEventListener(getEventName(), (event: Event & { target: Element }) => { const svgElement = hasTopClosestByTag(event.target, "svg"); if (!svgElement || svgElement.classList.contains("toolbar__icon--active")) { diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts index 9f537e878..f5692dff9 100644 --- a/app/src/util/Tree.ts +++ b/app/src/util/Tree.ts @@ -190,7 +190,7 @@ data-def-path="${item.defPath}"> } if (target.classList.contains("b3-list-item__action") && this.click) { // 移动端书签父节点删除按钮 - const liElement = hasClosestByMatchTag(target, "LI") + const liElement = hasClosestByMatchTag(target, "LI"); if (liElement) { this.click(liElement, event); }