|
|
|
@ -40,6 +40,7 @@ export class TabbarComponent implements OnInit {
|
|
|
|
|
if(out) { |
|
|
|
|
this.http.post('/api/ExamAccounts/SignOut',{}).subscribe(data=>{ |
|
|
|
|
sessionStorage.clear() |
|
|
|
|
localStorage.clear() |
|
|
|
|
this.token.delete() |
|
|
|
|
this.router.navigate(['/login']) |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
@ -47,7 +48,6 @@ export class TabbarComponent implements OnInit {
|
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('退出成功','确定',config); |
|
|
|
|
}) |
|
|
|
|
localStorage.removeItem("checkedWork") |
|
|
|
|
} //if
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|