From cf39784e1b72de6d565511fff8ca5c08da206e5e Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 1 Nov 2021 09:49:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=8A=A5=E5=91=8A=E7=9B=91=E6=8E=A7=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/report/components/MonitorCard.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/performance/report/components/MonitorCard.vue b/frontend/src/business/components/performance/report/components/MonitorCard.vue index 71e8318f48..c5a3790f59 100644 --- a/frontend/src/business/components/performance/report/components/MonitorCard.vue +++ b/frontend/src/business/components/performance/report/components/MonitorCard.vue @@ -204,6 +204,10 @@ export default { this.instances = response.data.data; if (currentInstance) { this.currentInstance = currentInstance; + this.showChart = false; + this.$nextTick(() => { + this.showChart = true; + }); } else { this.currentInstance = this.currentInstance || this.instances[0].ip + ":" + this.instances[0].port; } @@ -238,9 +242,7 @@ export default { this.checkList = checkList; } this.totalOption = {}; - this.showChart = false; this.$nextTick(() => { - this.showChart = true; this.totalOption = this.getOption(id); this.changeDataZoom({start: 0, end: 100}); });