菜单折叠,tab栏折叠

This commit is contained in:
zhouyuejun
2018-11-27 18:16:25 +08:00
parent 5470628d7f
commit bb2779e6e8
10 changed files with 219 additions and 85 deletions
+5 -5
View File
@@ -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));
}