From 37a2323141acb5b54ce6f515ba81178f5ee42a04 Mon Sep 17 00:00:00 2001 From: miki <45377370+miki-hmt@users.noreply.github.com> Date: Sun, 14 Apr 2024 08:36:26 +0800 Subject: [PATCH] [fixed] fixed click collector online offline button error (#1734) Co-authored-by: cttq-iot <111329082+cttq-iot@users.noreply.github.com> --- web-app/src/app/service/collector.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web-app/src/app/service/collector.service.ts b/web-app/src/app/service/collector.service.ts index 086a1151562..6344c8d1618 100644 --- a/web-app/src/app/service/collector.service.ts +++ b/web-app/src/app/service/collector.service.ts @@ -61,7 +61,8 @@ export class CollectorService { httpParams = httpParams.append('collectors', collector); }); const options = { params: httpParams }; - return this.http.put>(`${collector_uri}/online/`, null, options); + // 修复上下线接口调用异常问题 miki + return this.http.put>(`${collector_uri}/online`, null, options); } public goOfflineCollector(collectors: Set): Observable> { @@ -72,7 +73,8 @@ export class CollectorService { httpParams = httpParams.append('collectors', collector); }); const options = { params: httpParams }; - return this.http.put>(`${collector_uri}/offline/`, null, options); + // 修复上下线接口调用异常问题 miki + return this.http.put>(`${collector_uri}/offline`, null, options); } public deleteCollector(collectors: Set): Observable> {