|
|
|
@ -10,10 +10,11 @@ import { CacheTokenService } from 'src/app/service/cache-token.service';
|
|
|
|
|
export class NavComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
constructor(private router: Router, public token: CacheTokenService) { } |
|
|
|
|
|
|
|
|
|
user:"" |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
//调用服务中的function刷新token
|
|
|
|
|
this.token.startUp() |
|
|
|
|
this.user=JSON.parse(sessionStorage.getItem('userData')).organizationName |
|
|
|
|
} |
|
|
|
|
signOut() { |
|
|
|
|
this.router.navigate(['/login']) |
|
|
|
|