From dd37c63ec768d656c2c3b89732cd0eafba00e8e6 Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Sat, 23 Jul 2022 22:21:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cap=E5=92=8C=E5=81=A5?= =?UTF-8?q?=E5=BA=B7=E6=A3=80=E6=9F=A5api=E8=B7=AF=E5=BE=84=E5=86=99?= =?UTF-8?q?=E6=AD=BB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/wedgits/statistics/statistics.component.html | 2 +- .../dashboard/wedgits/statistics/statistics.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.html b/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.html index b24f5cce..83d080b7 100644 --- a/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.html +++ b/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.html @@ -26,7 +26,7 @@ Quartz - diff --git a/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.ts b/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.ts index 09c6ebbf..97bce5a4 100644 --- a/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.ts +++ b/IoTSharp/ClientApp/src/app/routes/dashboard/wedgits/statistics/statistics.component.ts @@ -22,7 +22,7 @@ export class StatisticsComponent implements OnInit, IWidgetComponent { constructor(private http: _HttpClient, private cdr: ChangeDetectorRef) {} ngOnInit(): void { let date: Date = new Date(); - this.http.get('http://localhost:5000/cap/api/metrics').subscribe({ + this.http.get('cap/api/metrics').subscribe({ next: next => { for (var i = 0; i < next.dayHour.length; i++) { this.chartdata.push({ @@ -39,7 +39,7 @@ export class StatisticsComponent implements OnInit, IWidgetComponent { complete: () => {} }); - this.http.get('http://localhost:5000/healthchecks-api').subscribe({ + this.http.get('healthchecks-api').subscribe({ next: next => { this.data = next[0].entries; this.cdr.detectChanges(); -- GitLab