From 70b9f262013e3684e3768f461982cb0c5b02f688 Mon Sep 17 00:00:00 2001 From: Dlouxgit <57781857+Dlouxgit@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:38:10 +0800 Subject: [PATCH] fix(docs): fixed the bug where the documentation redirects to a not found page after deployment (#696) --- website/docs/faq.md | 12 ++++++------ website/docs/guide.md | 4 ++-- website/docs/guide/micro-module.md | 2 +- website/docs/guide/use-child/others.md | 4 ++-- website/docs/guide/use-layout/react.md | 2 +- website/docs/guide/use-layout/vue.md | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/website/docs/faq.md b/website/docs/faq.md index 8ea579cc..8494d925 100644 --- a/website/docs/faq.md +++ b/website/docs/faq.md @@ -119,7 +119,7 @@ module.exports = { ## Error: Invariant failed: You should not use `` outside a `` -因为 jsx 嵌套层级的关系,在主应用的 Layout 里没法使用 react-router 提供的 API,比如 `withRouter`, `Link`, `useParams` 等,具体参考文档 [主应用中路由跳转](./guide/use-layout/react#主应用中路由跳转)。 +因为 jsx 嵌套层级的关系,在主应用的 Layout 里没法使用 react-router 提供的 API,比如 `withRouter`, `Link`, `useParams` 等,具体参考文档 [主应用中路由跳转](guide/use-layout/react#主应用中路由跳转)。 ## 官方 Demo 如何启用 HashRouter @@ -274,7 +274,7 @@ appHistory.push('/seller', true); 2. 添加 `fetch` polyfill -当 [`loadScriptMode`](./api/ice-stark#loadscriptmode) 为 `fetch` 时,icestark 会使用 `window.fetch` 获取微应用静态资源,因此还需要对 `fetch` 进行 polyfill。这里,我们推荐 [whatwg-fetch](https://github.com/github/fetch)。请确保在 icestark 之前引入该资源。 +当 [`loadScriptMode`](api/ice-stark#loadscriptmode) 为 `fetch` 时,icestark 会使用 `window.fetch` 获取微应用静态资源,因此还需要对 `fetch` 进行 polyfill。这里,我们推荐 [whatwg-fetch](https://github.com/github/fetch)。请确保在 icestark 之前引入该资源。 ```js // 入口文件 @@ -301,7 +301,7 @@ proxy sandbox is not support by current browser ## 如何解决 Script Error -“Script error.” 是一个常见错误,但由于该错误不提供完整的报错信息(错误堆栈),问题排查往往无从下手。icestark 的 [scriptAttributes](./api/ice-stark#scriptattributes) 参数支持为加载的 `