From cfcb5c5df4df1721ff4925d0acf7b4ff1dcad416 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Thu, 6 Jul 2023 09:58:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20g2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/ChartComponentG2.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chart/components/ChartComponentG2.vue b/frontend/src/views/chart/components/ChartComponentG2.vue index 60390d6e2a..086615a457 100644 --- a/frontend/src/views/chart/components/ChartComponentG2.vue +++ b/frontend/src/views/chart/components/ChartComponentG2.vue @@ -167,7 +167,9 @@ export default { }, beforeDestroy() { if (this.myChart.container) { - clear(this.myChart.container) + if (typeof this.myChart.container.getAttribute === 'function') { + clear(this.myChart.container) + } } this.myChart?.clear?.() this.myChart?.unbindSizeSensor?.()