From 8a9e12ae9fb5f8471f676ef5689739c3e225755f Mon Sep 17 00:00:00 2001 From: cipchk Date: Sun, 22 Oct 2023 12:39:48 +0800 Subject: [PATCH] docs: update qa --- docs/server.en-US.md | 6 +++++- docs/server.zh-CN.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/server.en-US.md b/docs/server.en-US.md index e0012cd64..ed3ebed94 100644 --- a/docs/server.en-US.md +++ b/docs/server.en-US.md @@ -96,8 +96,12 @@ Abort more detail please refer to [Proxying to a backend server](https://angular ## Common problem -**Q:** The request may be rejected or returned directly to `401`? +**The request may be rejected or returned directly to `401`?** Scaffolding uses the `SimpleInterceptor` interceptor of `@delon/auth` by default, which causes an error to be returned directly if a token cannot be obtained during the request. [User Authentication](/auth) This process is a must for the middle office. + +**Unable to display request log** + +Starting from Angular 13, the debugging log of remote requests will no longer be displayed in the terminal. If you need to display the log, you can fix from refer to [How to fix logging for proxy in angular](https://medium.com/@gagandeep.sidhu88/how-to-fix-logging-for-proxy-in-angular-834cf46d437d). diff --git a/docs/server.zh-CN.md b/docs/server.zh-CN.md index dd5a2f8e3..66ca1e5af 100644 --- a/docs/server.zh-CN.md +++ b/docs/server.zh-CN.md @@ -97,8 +97,12 @@ module.exports = { ## 常见问题 -**Q:** 请求可能被拒绝或直接返回 `401` ? +**请求可能被拒绝或直接返回 `401` ?** 脚手架默认情况下使用了 `@delon/auth` 的 `SimpleInterceptor` 拦截器,导致在请求过程中若发现无法获取 Token 时会直接返回错误。 [用户认证](/auth)这个过程是中台必备的。 + +**关于无法显示请求日志** + +从 Angular13 开始远程请求的调试日志将不再终端中显示,若有显示日期需求,可自行参考 [How to fix logging for proxy in angular](https://medium.com/@gagandeep.sidhu88/how-to-fix-logging-for-proxy-in-angular-834cf46d437d) 解决。