From e7b7f5ef8f3b6b51104d69c7906e24ac3a827c16 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Wed, 20 Oct 2021 14:40:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=98=E5=8F=A0=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chart-group.vue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-group.vue b/nezha-fronted/src/components/charts/chart-group.vue index a10b86e36..0b87c1f8b 100644 --- a/nezha-fronted/src/components/charts/chart-group.vue +++ b/nezha-fronted/src/components/charts/chart-group.vue @@ -301,19 +301,13 @@ export default { watch: { dropdownMenuShow (n) { this.$emit('dropmenu-change', n) - }, - chartData: { - deep: true, - immediate: true, - handler (n) { - if (n.param) { - this.showList = !n.param.collapse - } - } } }, mounted () { this.firstLoad = false + if (this.chartData.param) { + this.showList = !this.chartData.param.collapse + } }, beforeDestroy () { this.clearChart()