Browse Source

:rotating_light:

Vanessa 1 year ago
parent
commit
d9c30ae4ff

+ 1 - 1
app/src/menus/navigation.ts

@@ -656,7 +656,7 @@ export const genImportMenu = (notebookId: string, pathString: string) => {
         }
         files.getLeaf(liElement, notebookId);
         window.siyuan.menus.menu.remove();
-    }
+    };
     /// #if !BROWSER
     const importstdmd = (label: string, isDoc?: boolean) => {
         return {

+ 2 - 2
app/src/protyle/render/av/row.ts

@@ -80,7 +80,7 @@ const setPage = (blockElement: Element) => {
             blockElement.setAttribute("data-page-size", currentCount.toString());
         }
     }
-}
+};
 
 /**
  * 前端插入一假行
@@ -119,7 +119,7 @@ ${(item.getAttribute("data-block-id") || item.dataset.dtype === "block") ? ' dat
             // https://github.com/siyuan-note/siyuan/issues/10517
             let hideTextCell = false;
             response.data.filters.find((item: IAVFilter) => {
-                const headerElement = blockElement.querySelector(`.av__cell--header[data-col-id="${item.column}"]`)
+                const headerElement = blockElement.querySelector(`.av__cell--header[data-col-id="${item.column}"]`);
                 if (headerElement && ["relation", "rollup", "template", "created", "updated"].includes(headerElement.getAttribute("dtype"))) {
                     hideTextCell = true;
                     return true;

+ 1 - 1
app/src/protyle/wysiwyg/index.ts

@@ -2040,7 +2040,7 @@ export class WYSIWYG {
             // https://github.com/siyuan-note/siyuan/issues/10513
             const virtualRefElement = hasClosestByAttribute(event.target, "data-type", "virtual-block-ref");
             if (virtualRefElement) {
-                const blockElement = hasClosestBlock(virtualRefElement)
+                const blockElement = hasClosestBlock(virtualRefElement);
                 if (blockElement) {
                     fetchPost("/api/block/getBlockDefIDsByRefText", {
                         anchor: virtualRefElement.textContent,