-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: update router.md #2677
doc: update router.md #2677
Conversation
添加:配置路由时指定配置文件
Pull Request Test Coverage Report for Build 4338
💛 - Coveralls |
docs/zh/guide/router.md
Outdated
@@ -201,7 +201,7 @@ export default () => { | |||
|
|||
## 配置式路由 | |||
|
|||
如果你倾向于使用配置式的路由,可以配置 `routes` ,**此配置项存在时则不会对 `src/pages` 目录做约定式的解析**。 | |||
如果你倾向于使用配置式的路由,可以配置`.umirc.ts` 文件中的 `routes` 属性,**此配置项存在时则不会对 `src/pages` 目录做约定式的解析**。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以是 .umirc.(ts|js)
、config/config.(ts|js)
。 或者 通过[配置文件](https://umijs.org/zh/guide/app-structure.html#umirc-js-ts-%E5%92%8C-config-config-js-ts)中的
英文版也加下吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加上去了
修改配置式路由,添加配置文件指引
Add:a guide file tips of the Configuration Routing
|
docs/guide/router.md
Outdated
@@ -201,7 +201,7 @@ A route configuration is generated: | |||
|
|||
## Configuration Routing | |||
|
|||
If you prefer to use a configured route, you can configure `routes`, **this configuration item will not be parsed for the `src/pages` directory**. | |||
If you prefer to use a configured route, you can configure `routes` in the configuration file either ``.umirc.(ts|js)``or```config/config.(ts|js)```, **this configuration item will not be parsed for the `src/pages` directory**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里还有 ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刚才正在改~
Fixed: a space between code and text
docs/guide/router.md
Outdated
@@ -201,7 +201,7 @@ A route configuration is generated: | |||
|
|||
## Configuration Routing | |||
|
|||
If you prefer to use a configured route, you can configure `routes` in the configuration file either ``.umirc.(ts|js)``or```config/config.(ts|js)```, **this configuration item will not be parsed for the `src/pages` directory**. | |||
If you prefer to use a configured route, you can configure `routes` in the configuration file either `.umirc.(ts|js)` or `config/config.(ts|js)` , **this configuration item will not be parsed for the `src/pages` directory**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
标点前不加空格。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
Fixed: remove the space from the front of comma
* Update router.md 添加:配置路由时指定配置文件 * 修改配置式路由,添加配置文件指引 修改配置式路由,添加配置文件指引 * Add:a guide file tips of the Configuration Routing Add:a guide file tips of the Configuration Routing * 修改:格式调整 格式调整 * Fixed: a space between code and text Fixed: a space between code and text * Fixed: remove the space from the front of comma Fixed: remove the space from the front of comma
添加:配置路由时指定配置文件
Checklist
npm test
passesDescription of change