From e0e4136bb2ce37b09e564f89ccef7f4bcd4dbe46 Mon Sep 17 00:00:00 2001 From: AnAngle <1323481023@qq.com> Date: Thu, 28 Oct 2021 01:00:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20echart=E5=9B=BE=E8=A1=A8=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/components/common/chart/MsChart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/common/chart/MsChart.vue b/frontend/src/business/components/common/chart/MsChart.vue index 3a02f34a45..116c9afa15 100644 --- a/frontend/src/business/components/common/chart/MsChart.vue +++ b/frontend/src/business/components/common/chart/MsChart.vue @@ -46,7 +46,7 @@ export default { }, computed: { chartHeight() { - if (this.height.indexOf('px') > -1 || this.height.indexOf('calc') > -1) { + if (this.height.indexOf) { return this.height; } else { return this.height + 'px'; @@ -56,7 +56,7 @@ export default { if (!this.width) { return this.width; } - if (this.width.indexOf('px') > -1 || this.width.indexOf('calc') > -1) { + if (this.width.indexOf) { return this.width; } else { return this.width + 'px';