From 3c2864e5c70d4f3bc2479f164845477f0b2e7cc5 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Thu, 30 Sep 2021 11:28:58 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1038=20fix:=2044.36=20=E7=8E=AF=E5=A2=83=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AE=89=E8=A3=85=E5=90=8E=20overvi?= =?UTF-8?q?ew=20=E9=A1=B5=E9=9D=A2=20console=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/page/dashboard/overview/overview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview.vue b/nezha-fronted/src/components/page/dashboard/overview/overview.vue index 3714c9807..5d31e4282 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/overview.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/overview.vue @@ -790,7 +790,7 @@ export default { const bigScatter = 10 const mediumScatter = 8 const smallScatter = 6 - const maxAssetTotal = dcInfos[dcInfos.length - 1].assetNum // 获取asset数量最大值 + const maxAssetTotal = dcInfos[dcInfos.length - 1] ? dcInfos[dcInfos.length - 1].assetNum : '' // 获取asset数量最大值 const bigBoundary = Number.parseInt(maxAssetTotal / 3 * 2) // 根据最大值定下大图标、中图标的阈值 const mediumBoundary = Number.parseInt(maxAssetTotal / 3)