Vanessa 2025-07-25 22:07:11 +08:00
parent 49dd247b8a
commit cbbca634f5

View file

@ -1504,7 +1504,7 @@ export const openMenuPanel = (options: {
window.siyuan.menus.menu.remove();
const useElement = target.firstElementChild;
const isHide = useElement.getAttribute("xlink:href") !== "#iconEye";
useElement.setAttribute("xlink:href", "#iconEyeoff");
useElement.setAttribute("xlink:href", isHide ? "#iconEye" : "#iconEyeoff");
transaction(options.protyle, [{
action: "hideAttrViewGroup",
avID: data.id,