bixi
Version:
企业级中后台前端解决方案
25 lines (22 loc) • 444 B
Markdown
order: 30
title:
zh-CN: 常见问题
en-US: common problem
type: Other
## How to capture intercepted information when there is no Token?
```ts
// Use subscription Error
this.http.get('/user').subscribe(
res => console.log('success', res),
err => console.error('error', err)
);
// Or use catchError
this.http.get('/user').pipe(
catchError(err => {
console.error('error', err);
return of({});
})
).subscribe();
```