添加刷新及显示航班ID方便测试

This commit is contained in:
zhouyuejun
2018-12-24 17:18:50 +08:00
parent 6e35f9cb88
commit 9815df7b0f
4 changed files with 67 additions and 7 deletions
-4
View File
@@ -109,16 +109,12 @@ export class HttpClientService {
* @param observable
*/
commonProcess(observable: Observable<any>): Observable<any> {
// this.spinService.spin(true);
return Observable.create((observer) => {
observable.subscribe(res => {
// this.spinService.spin(false);
observer.next(res);
}, (err) => {
// this.spinService.spin(false);
observer.error(err);
}, () => {
// this.spinService.spin(false);
observer.complete();
});
});