From 4a959f9267a7972b60734220b4d176641c41aace Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 30 Mar 2022 17:25:15 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1755=20fix=EF=BC=9A=E7=BB=84=E5=86=85=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E8=A1=A8=E5=90=8E=20=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E7=A7=BB=E8=87=B3=E6=9C=80=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/chart/chartRightBox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index fa725da8a..eaab25dbf 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -234,11 +234,11 @@ export default { params.x = 0 params.y = 0 } - if (!params.x && !params.y && params.groupId) { // group 内的坐标需要单独计算 + if (isNaN(params.y) && isNaN(params.y) && params.groupId) { // group 内的坐标需要单独计算 params.x = 0 params.y = 999 } - if (!params.x && !params.y) { + if (isNaN(params.y) && isNaN(params.y)) { params.x = this.chartLastPosition.x + params.span > 12 ? 0 : this.chartLastPosition.x params.y = this.chartLastPosition.y + 12 }