Skip to content

Commit

Permalink
[fixed] fixed click collector online offline button error (#1734)
Browse files Browse the repository at this point in the history
Co-authored-by: cttq-iot <[email protected]>
  • Loading branch information
miki-hmt and cttq-iot authored Apr 14, 2024
1 parent bdc0699 commit 37a2323
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web-app/src/app/service/collector.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>> {
Expand All @@ -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>> {
Expand Down

0 comments on commit 37a2323

Please sign in to comment.