From c004252e440592ea77b45fe62ba44da08f39b955 Mon Sep 17 00:00:00 2001 From: shimingxy Date: Tue, 10 Dec 2024 10:11:27 +0800 Subject: [PATCH] Update home.component.ts --- .../src/app/routes/dashboard/home/home.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/dashboard/home/home.component.ts b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/dashboard/home/home.component.ts index 4390fcd69..897e6127b 100644 --- a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/dashboard/home/home.component.ts +++ b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/dashboard/home/home.component.ts @@ -144,10 +144,11 @@ export class HomeComponent implements OnInit { name: this.provinceTableData[i].name, itemStyle: { color: this.mapColor.length - 1 } }); - if (maxMapCount < this.provinceMapData[i].reportcount) { - maxMapCount = this.provinceMapData[i].reportcount; + if (maxMapCount < this.provinceMapData[i].value) { + maxMapCount = this.provinceMapData[i].value; } } + console.log(`maxMapCount ${maxMapCount}`); if (maxMapCount <= 100) { //100以内 this.mapSplitList = [