src/app/layout/default/header/components/user.component.ts
File was renamed from src/app/layout/header/components/user.component.ts @@ -30,6 +30,7 @@ this.tokenService.change().subscribe((res: any) => { this.settings.setUser(res); }); // mock const token = this.tokenService.get() || { token: 'nothing', name: 'Admin', @@ -41,6 +42,6 @@ logout() { this.tokenService.clear(); this.router.navigateByUrl('/pro/user/login'); this.router.navigateByUrl(this.tokenService.login_url); } }