|
|
|
@ -1,9 +1,10 @@
|
|
|
|
|
import { Component, OnInit ,Inject} from '@angular/core'; |
|
|
|
|
import {CacheTokenService} from '../http-interceptors/cache-token.service'//引入服务
|
|
|
|
|
import { CacheTokenService } from '../http-interceptors/cache-token.service'//引入服务
|
|
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
|
import {FormControl} from '@angular/forms'; |
|
|
|
|
import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog'; |
|
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
|
|
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; |
|
|
|
|
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; |
|
|
|
|
import { IsLoginService } from '../is-login.service' |
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-navigation', |
|
|
|
|
templateUrl: './navigation.component.html', |
|
|
|
@ -11,7 +12,7 @@ import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
|
|
|
|
|
}) |
|
|
|
|
export class NavigationComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
constructor(public navmenus:CacheTokenService,private http: HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar) { } |
|
|
|
|
constructor(public navmenus:CacheTokenService,private http: HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar,public sss:IsLoginService) { } |
|
|
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
|
|
|
|
|
@ -46,6 +47,9 @@ export class NavigationComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
xxx(e){ |
|
|
|
|
this.sss.xxx = e |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|