菜单折叠,tab栏折叠
This commit is contained in:
@@ -51,9 +51,9 @@ export class HttpClientService {
|
||||
paramsString.push([key, params[key]].join('='))
|
||||
}
|
||||
}
|
||||
return this.commonProcess(this.httpClient.get(encodeURI(url + paramsString.join('&') + '&t=' + t), options = {}));
|
||||
return this.commonProcess(this.httpClient.get(encodeURI(url + paramsString.join('&') + '&t=' + t), options));
|
||||
} else {
|
||||
return this.commonProcess(this.httpClient.get(url + 't=' + t, options = {}));
|
||||
return this.commonProcess(this.httpClient.get(url + 't=' + t, options));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ export class HttpClientService {
|
||||
* @param url
|
||||
* @param options
|
||||
*/
|
||||
patch(url: string, body, options?): Observable<any> {
|
||||
patch(url: string, body?, options?): Observable<any> {
|
||||
return this.commonProcess(this.httpClient.patch(url, body, options));
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ export class HttpClientService {
|
||||
* @param body
|
||||
* @param options
|
||||
*/
|
||||
post(url: string, body, options?): Observable<any> {
|
||||
post(url: string, body?, options?): Observable<any> {
|
||||
return this.commonProcess(this.httpClient.post(url, body, options));
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ export class HttpClientService {
|
||||
* @param url
|
||||
* @param options
|
||||
*/
|
||||
put(url: string, body, options?): Observable<any> {
|
||||
put(url: string, body?, options?): Observable<any> {
|
||||
return this.commonProcess(this.httpClient.put(url, body, options));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user