This is an automated email from the ASF dual-hosted git repository.
shushengzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 37a232314 [fixed] fixed click collector online offline button error
(#1734)
37a232314 is described below
commit 37a2323141acb5b54ce6f515ba81178f5ee42a04
Author: miki <[email protected]>
AuthorDate: Sun Apr 14 08:36:26 2024 +0800
[fixed] fixed click collector online offline button error (#1734)
Co-authored-by: cttq-iot <[email protected]>
---
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 086a11515..6344c8d16 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<Message<any>>(`${collector_uri}/online/`, null,
options);
+ // 修复上下线接口调用异常问题 miki
+ return this.http.put<Message<any>>(`${collector_uri}/online`, null,
options);
}
public goOfflineCollector(collectors: Set<string>): Observable<Message<any>>
{
@@ -72,7 +73,8 @@ export class CollectorService {
httpParams = httpParams.append('collectors', collector);
});
const options = { params: httpParams };
- return this.http.put<Message<any>>(`${collector_uri}/offline/`, null,
options);
+ // 修复上下线接口调用异常问题 miki
+ return this.http.put<Message<any>>(`${collector_uri}/offline`, null,
options);
}
public deleteCollector(collectors: Set<string>): Observable<Message<any>> {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]