import 'rxjs/add/operator/timeout';
...
/**
* get请求
* @param {string} url
* @param params
* @returns {any}
*/
public get(url: string, params?: any): any {
// 将视图参数加上
return this.http.get(url, this.getParams(params)).timeout(10000);
}