diff --git a/src/app/pages/lockscreen/lockscreen.component.ts b/src/app/pages/lockscreen/lockscreen.component.ts index ec4d81f..a045f33 100644 --- a/src/app/pages/lockscreen/lockscreen.component.ts +++ b/src/app/pages/lockscreen/lockscreen.component.ts @@ -35,7 +35,7 @@ export class LockscreenComponent implements OnInit { sessionStorage.setItem("refreshToken",data.refreshToken); sessionStorage.setItem("level",data.level); this.token.startUp(); //登陆成功启动定时器刷新token - this.router.navigate(['/home/createexam-index']) //登陆成功跳转页面 + this.roleType == '1'? this.router.navigate(['/home/createexam-index']) : this.router.navigate(['/home/student-index']) },(err) => {this.errmsg = err}) }