添加刷新及显示航班ID方便测试
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user