导出功能实现及接口对接
This commit is contained in:
@@ -98,7 +98,18 @@ export class HttpClientService {
|
||||
* @param options
|
||||
*/
|
||||
post(url: string, body?, options?): Observable<any> {
|
||||
return this.commonProcess(this.httpClient.post(url, body, { headers: this.header }));
|
||||
let optObj = {
|
||||
headers: this.header
|
||||
}
|
||||
if (options) {
|
||||
for (const key in options) {
|
||||
if (options.hasOwnProperty(key)) {
|
||||
// const element = options[key];
|
||||
optObj[key] = options[key]
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.commonProcess(this.httpClient.post(url, body, optObj));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user