添加路由复用策略
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 = false;
|
||||
public isSpinning: any = true;
|
||||
menuData = [
|
||||
{
|
||||
"name": "航班动态",
|
||||
@@ -192,7 +192,7 @@ export class PagesComponent implements OnInit {
|
||||
constructor(
|
||||
private router: Router,
|
||||
private basicDataService: BasicDataService,
|
||||
// private operateSpinService: OperateSpinServiceService,
|
||||
private operateSpinService: OperateSpinServiceService,
|
||||
private httpClient: HttpClientService,
|
||||
private toastService: ToastService,
|
||||
) {
|
||||
@@ -209,9 +209,9 @@ export class PagesComponent implements OnInit {
|
||||
this.selectActiveMenu(this.menuData, event['urlAfterRedirects'])
|
||||
});
|
||||
|
||||
// this.operateSpinService.spinSubject.subscribe(
|
||||
// val => this.isSpinning = val
|
||||
// )
|
||||
this.operateSpinService.spinSubject.subscribe(
|
||||
val => this.isSpinning = val
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user