差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
it:framework:angurlar [2023-04-23 23:08] – [问题集] goldentianya | it:framework:angurlar [2023-05-21 09:53] (当前版本) – [搜索结果] goldentianya | ||
---|---|---|---|
行 8: | 行 8: | ||
HTTP 流式传输:[[https:// | HTTP 流式传输:[[https:// | ||
+ | |||
+ | ===== 搜索结果 ===== | ||
+ | | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP third column> | ||
+ | perplexity.ai | ||
+ | * [[https:// | ||
+ | </ | ||
+ | |||
+ | <WRAP third column> | ||
+ | mail.simperator.com | ||
+ | * [[https:// | ||
+ | </ | ||
+ | |||
+ | <WRAP third column> | ||
+ | notion.co | ||
+ | * [[https:// | ||
+ | </ | ||
+ | </ | ||
===== 问题集 ===== | ===== 问题集 ===== | ||
行 13: | 行 33: | ||
**问题一:404报错** | **问题一:404报错** | ||
- | Angular 刷新页面的时候出现 404 错误。有两个解决方案 | + | Angular 刷新页面的时候出现 404 错误。有两个解决方案, <color # |
<code | 方案一> | <code | 方案一> | ||
import { LocationStrategy, | import { LocationStrategy, | ||
行 27: | 行 47: | ||
</ | </ | ||
+ | **问题二:运行时出错** | ||
+ | 以下代码在 ng serve 时没有问题,但 ng build 并推送到服务器之后就出现运行时错误。 | ||
+ | |||
+ | <code | download> | ||
+ | if(options? | ||
+ | (options? | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 需要更改为 | ||
+ | <code | download> | ||
+ | var hd:any = options? | ||
+ | hd.Authorization = `Bearer ${BaseSetting.AccessToken}` | ||
+ | </ |