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);
}