From 2168a67128632ec65df3acb5d6a4479d008bf469 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 5 Jan 2023 15:38:51 +0800 Subject: [PATCH] fix: update --- src/components/Graph.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Graph.vue b/src/components/Graph.vue index e4ed4848..20ef1ea1 100644 --- a/src/components/Graph.vue +++ b/src/components/Graph.vue @@ -108,13 +108,13 @@ limitations under the License. --> emits("select", currentParams.value); return; } - if (!chartRef.value) { - return; - } instance.dispatchAction({ type: "hideTip", }); visMenus.value = true; + if (!chartRef.value) { + return; + } const w = chartRef.value.getBoundingClientRect().width || 0; const h = chartRef.value.getBoundingClientRect().height || 0; if (w - params.event.offsetX > 120) { @@ -149,6 +149,10 @@ limitations under the License. --> instance.dispatchAction({ type: "hideTip", }); + instance.dispatchAction({ + type: "updateAxisPointer", + currTrigger: "leave", + }); }, true, );