Browse Source

:art: https://github.com/siyuan-note/siyuan/issues/7536 refresh

Vanessa 2 years ago
parent
commit
ae336e9f36
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/src/layout/topBar.ts
  2. 1 1
      app/src/protyle/render/av/render.ts

+ 1 - 1
app/src/layout/topBar.ts

@@ -15,7 +15,7 @@ import {webFrame} from "electron";
 /// #endif
 import {Constants} from "../constants";
 import {isBrowser, isWindow} from "../util/functions";
-import {Menu} from "../plugin/API";
+import {Menu} from "../plugin/Meun";
 
 export const updateEditModeElement = () => {
     const target = document.querySelector("#barReadonly");

+ 1 - 1
app/src/protyle/render/av/render.ts

@@ -88,7 +88,7 @@ export const avRender = (element: Element, cb?: () => void) => {
 
 export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
     if (operation.action === "addAttrViewCol") {
-        Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.id}"]`)).forEach((item: HTMLElement) => {
+        Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.parentID}"]`)).forEach((item: HTMLElement) => {
             item.removeAttribute("data-render");
             avRender(item, () => {
                 showHeaderCellMenu(protyle, item, item.querySelector(".av__row--header").lastElementChild.previousElementSibling as HTMLElement);