From 9ee62dffcafc7a983d092622bb6c668c9623e51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sat, 8 Oct 2022 20:48:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E8=A7=A3=E9=94=81=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/hooks/useContextMenu.hook.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/chart/hooks/useContextMenu.hook.ts b/src/views/chart/hooks/useContextMenu.hook.ts index 2bf8fdf8..e0aa782e 100644 --- a/src/views/chart/hooks/useContextMenu.hook.ts +++ b/src/views/chart/hooks/useContextMenu.hook.ts @@ -199,7 +199,9 @@ const handleContextMenu = ( target = target.parentNode } - // 展示列表 + chartEditStore.setTargetSelectChart(targetInstance && targetInstance.id) + + // 隐藏旧列表 chartEditStore.setRightMenuShow(false) // * 多选默认选项