Sfoglia il codice sorgente

fix: 解决右键解锁无法使用的问题

奔跑的面条 3 anni fa
parent
commit
9ee62dffca
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/views/chart/hooks/useContextMenu.hook.ts

+ 3 - 1
src/views/chart/hooks/useContextMenu.hook.ts

@@ -199,7 +199,9 @@ const handleContextMenu = (
     target = target.parentNode
   }
 
-  // 展示列表
+  chartEditStore.setTargetSelectChart(targetInstance && targetInstance.id)
+
+  // 隐藏旧列表
   chartEditStore.setRightMenuShow(false)
 
   // * 多选默认选项