📝 fix some mistake (#1535)
This commit is contained in:
parent
a3d240ca47
commit
eb9d8fd053
|
|
@ -164,7 +164,7 @@ const routes = [
|
|||
路由设置:
|
||||
|
||||
```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`):
|
||||
|
|
@ -180,7 +180,7 @@ const routes = [
|
|||
路由设置:
|
||||
|
||||
```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 配置:
|
||||
|
|
@ -201,7 +201,7 @@ const routes = [
|
|||
providers: [
|
||||
{
|
||||
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/',
|
||||
},
|
||||
];
|
||||
```
|
||||
|
|
|
|||
|
|
@ -484,7 +484,7 @@ example:
|
|||
|
||||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -482,7 +482,7 @@ npm i @angular-builders/dev-server -D
|
|||
|
||||
你也可以直接参照 examples 中 purehtml 部分的[代码](https://github.com/umijs/qiankun/tree/master/examples/purehtml)
|
||||
|
||||
同时,你也需要开启相关资源的 CORS,具体请参照[此处](#微应用静态资源一定要支持跨域吗?)
|
||||
同时,你也需要开启相关资源的 CORS,具体请参照[此处](/zh/faq#微应用静态资源一定要支持跨域吗?)
|
||||
|
||||
### umi-qiankun 项目
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user