From ff1a52d7c4e1eb12dd53aa430dbdffc7b4270bb8 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 26 Nov 2021 12:09:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DantV=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=A4=9A=E4=BA=8B=E4=BB=B6=E5=BC=B9=E6=A1=86=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/Editor/ViewTrackBar.vue | 5 ++++- .../chart/components/ChartComponentG2.vue | 21 +------------------ 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/ViewTrackBar.vue b/frontend/src/components/canvas/components/Editor/ViewTrackBar.vue index 454705931d..605c0627b5 100644 --- a/frontend/src/components/canvas/components/Editor/ViewTrackBar.vue +++ b/frontend/src/components/canvas/components/Editor/ViewTrackBar.vue @@ -31,7 +31,10 @@ export default { }, methods: { trackButtonClick() { - this.$refs.trackButton.click() + const _this = this + setTimeout(() => { + _this.$refs.trackButton.click() + }, 50) }, trackMenuClick(menu) { this.$emit('trackClick', menu) diff --git a/frontend/src/views/chart/components/ChartComponentG2.vue b/frontend/src/views/chart/components/ChartComponentG2.vue index c07345996c..66c9437c86 100644 --- a/frontend/src/views/chart/components/ChartComponentG2.vue +++ b/frontend/src/views/chart/components/ChartComponentG2.vue @@ -10,7 +10,6 @@