部分代码抽取(数据处理,排序)优化
This commit is contained in:
@@ -18,7 +18,7 @@ import { filter } from 'rxjs/operators';
|
||||
})
|
||||
export class PagesComponent implements OnInit {
|
||||
public menuClose: boolean = false;
|
||||
public isSpinning: any = true;
|
||||
public isSpinning: any = false;
|
||||
menuData = [
|
||||
{
|
||||
"name": "航班动态",
|
||||
@@ -196,6 +196,9 @@ export class PagesComponent implements OnInit {
|
||||
private httpClient: HttpClientService,
|
||||
private toastService: ToastService,
|
||||
) {
|
||||
this.operateSpinService.spinSubject.subscribe(
|
||||
val => this.isSpinning = val
|
||||
)
|
||||
this.basicDataService.loadBasicData();
|
||||
}
|
||||
|
||||
@@ -209,9 +212,7 @@ export class PagesComponent implements OnInit {
|
||||
this.selectActiveMenu(this.menuData, event['urlAfterRedirects'])
|
||||
});
|
||||
|
||||
this.operateSpinService.spinSubject.subscribe(
|
||||
val => this.isSpinning = val
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user