文档更新

master
toesbieya 6 years ago
parent ba81755fd5
commit 836b3481d3
  1. 2
      docs/.vuepress/config.js
  2. 21
      docs/frontend/router.md

@ -6,7 +6,7 @@ module.exports = {
host: 'localhost', host: 'localhost',
// 输出目录 // 输出目录
dest: 'dist', dest: 'doc',
// 主题配置 // 主题配置
themeConfig: { themeConfig: {

@ -14,16 +14,17 @@
### Route.meta Attributes: ### Route.meta Attributes:
| 参数 | 说明 | 类型 | 默认 | | 参数 | 说明 | 类型 | 默认 |
| :----------: | :----------------------------------------------: | :-------: | :---------------------: | | :----------: | :----------------------------------------------: | :--------: | :---------------------: |
| title | 路由在侧边栏、面包屑、页签、搜索结果中的显示名称 | `string` | - | | title | 路由在侧边栏、面包屑、页签、搜索结果中的显示名称 | `string` | - |
| icon | 图标名,支持svg-icon、el-icon | `string` | - | | dynamicTitle | 路由在面包屑、页签中的动态名称,参数为(to,from) | `function` | - |
| affix | 是否在多页签中固定显示 | `boolean` | - | | icon | 图标名,支持svg-icon、el-icon | `string` | - |
| noCache | true时缓存页面 | `boolean` | - | | affix | 是否在多页签中固定显示 | `boolean` | - |
| activeMenu | 侧边栏当前激活菜单的index | `string` | - | | noCache | true时缓存页面 | `boolean` | - |
| noAuth | true时路由不需要鉴权 | `boolean` | router/constant下为true | | activeMenu | 侧边栏当前激活菜单的index | `string` | - |
| iframe | 需要打开的iframe的地址 | `string` | - | | noAuth | true时路由不需要鉴权 | `boolean` | router/constant下为true |
| isDetailPage | 是否是详情页 | `boolean` | - | | iframe | 需要打开的iframe的地址 | `string` | - |
| isDetailPage | 是否是详情页 | `boolean` | - |
::: tip 注意 ::: tip 注意
路由meta上的affix、noAuth、noCache会被子路由继承,优先使用子路由的值 路由meta上的affix、noAuth、noCache会被子路由继承,优先使用子路由的值

Loading…
Cancel
Save