这是功能:
onSubmit(value){
this.authService.login(value.email, value.password)
.then(
res=> {})
.catch(error=>
{console.log(error);}
)
}
我认为在 res 中我必须设置超时。我有 authGuard,这就是我需要超时的原因。
这是功能:
onSubmit(value){
this.authService.login(value.email, value.password)
.then(
res=> {})
.catch(error=>
{console.log(error);}
)
}
我认为在 res 中我必须设置超时。我有 authGuard,这就是我需要超时的原因。