Skip to content

Commit

Permalink
fix(doc): 文字调整
Browse files Browse the repository at this point in the history
  • Loading branch information
hualigushi committed Aug 9, 2023
1 parent d87fa9d commit 5aee585
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/docs/blog/mfsu-faster-than-vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ Umi 4 中同时支持 webpack 和 vite 两种构建方式,跑通了后,迫
图:libs example 速度对比图
</p>

可以看到,<span style={{color:'red',fontWeight:'bold'}}>在这几个场景下,MFSU with esbuild 数据领先。</span>四个模式的页面打开速度差不多,所以对比数据没在图中列出,这也是让我意外的点,原以为 Vite 请求多会让页面打开速度变慢,也有可能项目还不够复杂?
可以看到,**在这几个场景下,MFSU with esbuild 数据领先。** 四个模式的页面打开速度差不多,所以对比数据没在图中列出,这也是让我意外的点,原以为 Vite 请求多会让页面打开速度变慢,也有可能项目还不够复杂?
9 changes: 0 additions & 9 deletions docs/docs/docs/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@ createSearchParams([["foo", "1"], ["bar", "2"]]).toString()

[URLSearchParams 文档](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)

{
/*

### dynamic

TODO: SUPPORT
*/
}

### generatePath

使用给定的带参数的 path 和对应的 params 生成实际要访问的路由。
Expand Down
11 changes: 1 addition & 10 deletions docs/docs/docs/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ Warning: There are 1 unused files:
:::warning{title=🚨}
1. 属性值会经过一次 `JSON.stringify` 转换。
2. key 值的替换是通过语法形式来匹配的,比如配置了 `{'a.b.c': 'abcValue'}` 是无法替换代码中的 `a.b?.c`
:::

比如,

Expand Down Expand Up @@ -884,16 +885,6 @@ import { Icon } from 'umi';
- [swc 参考](https://swc.rs/docs/configuration/minification#configuration)
- [uglifyJs 参考](https://lisperator.net/uglifyjs/compress)

{
/*
## jsMinifier (vite 构建)

* 类型:`string`
* 默认值:

*/
}

## lessLoader

- 类型:`Object`
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/docs/guides/routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ const location = useLocation();
推荐使用 `useLocation`, 而不是直接访问 `history.location`. 两者的区别是 `pathname` 的部分。
`history.location.pathname` 是完整的浏览器的路径名;而 `useLocation` 中返回的 `pathname` 是相对项目配置的`base`的路径。

举例:项目如果配置 `base: '/testbase'`, 当前浏览器地址为 `https://localhost:8000/testbase/page/apple`
举例:项目如果配置 `base: '/testbase'`,

当前浏览器地址为 `https://localhost:8000/testbase/page/apple`

`history.location.pathname``/testbase/page/apple`

Expand Down

0 comments on commit 5aee585

Please sign in to comment.