From 836b3481d3b30dff6b8319f2ab04e6ca68a4e315 Mon Sep 17 00:00:00 2001 From: toesbieya <1647775459@qq.com> Date: Wed, 22 Jul 2020 22:09:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 2 +- docs/frontend/router.md | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 76c293a..559d8f9 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -6,7 +6,7 @@ module.exports = { host: 'localhost', // 输出目录 - dest: 'dist', + dest: 'doc', // 主题配置 themeConfig: { diff --git a/docs/frontend/router.md b/docs/frontend/router.md index 884bd6e..3bee17b 100644 --- a/docs/frontend/router.md +++ b/docs/frontend/router.md @@ -14,16 +14,17 @@ ### Route.meta Attributes: -| 参数 | 说明 | 类型 | 默认 | -| :----------: | :----------------------------------------------: | :-------: | :---------------------: | -| title | 路由在侧边栏、面包屑、页签、搜索结果中的显示名称 | `string` | - | -| icon | 图标名,支持svg-icon、el-icon | `string` | - | -| affix | 是否在多页签中固定显示 | `boolean` | - | -| noCache | true时缓存页面 | `boolean` | - | -| activeMenu | 侧边栏当前激活菜单的index | `string` | - | -| noAuth | true时路由不需要鉴权 | `boolean` | router/constant下为true | -| iframe | 需要打开的iframe的地址 | `string` | - | -| isDetailPage | 是否是详情页 | `boolean` | - | +| 参数 | 说明 | 类型 | 默认 | +| :----------: | :----------------------------------------------: | :--------: | :---------------------: | +| title | 路由在侧边栏、面包屑、页签、搜索结果中的显示名称 | `string` | - | +| dynamicTitle | 路由在面包屑、页签中的动态名称,参数为(to,from) | `function` | - | +| icon | 图标名,支持svg-icon、el-icon | `string` | - | +| affix | 是否在多页签中固定显示 | `boolean` | - | +| noCache | true时缓存页面 | `boolean` | - | +| activeMenu | 侧边栏当前激活菜单的index | `string` | - | +| noAuth | true时路由不需要鉴权 | `boolean` | router/constant下为true | +| iframe | 需要打开的iframe的地址 | `string` | - | +| isDetailPage | 是否是详情页 | `boolean` | - | ::: tip 注意 路由meta上的affix、noAuth、noCache会被子路由继承,优先使用子路由的值