📝 fix some mistake (#1535)

This commit is contained in:
gongshun 2021-06-28 11:34:34 +08:00 committed by GitHub
parent a3d240ca47
commit eb9d8fd053
3 changed files with 5 additions and 5 deletions

View File

@ -164,7 +164,7 @@ const routes = [
路由设置: 路由设置:
```js ```js
base: window.__POWERED_BY_QIANKUN__ ? '/app-vue/' : '/child/vue-history/', base: window.__POWERED_BY_QIANKUN__ ? '/app-vue-history/' : '/child/vue-history/',
``` ```
webpack 打包 publicPath 配置(`vue.config.js` webpack 打包 publicPath 配置(`vue.config.js`
@ -180,7 +180,7 @@ const routes = [
路由设置: 路由设置:
```html ```html
<BrowserRouter basename={window.__POWERED_BY_QIANKUN__ ? '/app-react' : '/child/react-history/'}> <BrowserRouter basename={window.__POWERED_BY_QIANKUN__ ? '/app-react-history' : '/child/react-history/'}>
``` ```
webpack 打包 publicPath 配置: webpack 打包 publicPath 配置:
@ -201,7 +201,7 @@ const routes = [
providers: [ providers: [
{ {
provide: APP_BASE_HREF, provide: APP_BASE_HREF,
useValue: window.__POWERED_BY_QIANKUN__ ? '/app-angular/' : '/child/angular-history/', useValue: window.__POWERED_BY_QIANKUN__ ? '/app-angular-history/' : '/child/angular-history/',
}, },
]; ];
``` ```

View File

@ -484,7 +484,7 @@ example:
refer to the [purehtml examples](https://github.com/umijs/qiankun/tree/master/examples/purehtml) refer to the [purehtml examples](https://github.com/umijs/qiankun/tree/master/examples/purehtml)
At the same time, [the subApp must support the CORS](#must-a-sub-app-asset-support-cors) At the same time, [the subApp must support the CORS](/faq#must-a-sub-app-asset-support-cors)
### umi-qiankun app ### umi-qiankun app

View File

@ -482,7 +482,7 @@ npm i @angular-builders/dev-server -D
你也可以直接参照 examples 中 purehtml 部分的[代码](https://github.com/umijs/qiankun/tree/master/examples/purehtml) 你也可以直接参照 examples 中 purehtml 部分的[代码](https://github.com/umijs/qiankun/tree/master/examples/purehtml)
同时,你也需要开启相关资源的 CORS具体请参照[此处](#微应用静态资源一定要支持跨域吗?) 同时,你也需要开启相关资源的 CORS具体请参照[此处](/zh/faq#微应用静态资源一定要支持跨域吗?)
### umi-qiankun 项目 ### umi-qiankun 项目