Browse Source

[完善]登陆成功后跳转页面地址

master
邵佳豪 4 years ago
parent
commit
049faf9115
  1. 2
      src/app/pages/lockscreen/lockscreen.component.ts

2
src/app/pages/lockscreen/lockscreen.component.ts

@ -34,7 +34,7 @@ export class LockscreenComponent implements OnInit {
sessionStorage.setItem("token",data.token);
sessionStorage.setItem("refreshToken",data.refreshToken);
this.token.startUp(); //登陆成功启动定时器刷新token
this.router.navigate(['/home/createexam']) //登陆成功跳转页面
this.router.navigate(['/home/createexam-index']) //登陆成功跳转页面
},(err) => {this.errmsg = err})
}

Loading…
Cancel
Save