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> {