项目路由配置说明
作者:互联网
/** * Note: sub-menu only appear when route children.length >= 1 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html * * hidden: true if set true, item will not show in the sidebar(default is false) * alwaysShow: true if set true, will always show the root menu * if not set alwaysShow, when item has more than one children route, * it will becomes nested mode, otherwise not show the root menu * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb * name:'router-name' the name is used by <keep-alive> (must set!!!) * meta : { roles: ['admin','editor'] control the page roles (you can set multiple roles) title: 'title' the name show in sidebar and breadcrumb (recommend set) icon: 'svg-name'/'el-icon-x' the icon show in the sidebar noCache: true if set true, the page will no be cached(default is false) affix: true if set true, the tag will affix in the tags-view breadcrumb: false if set false, the item will hidden in breadcrumb(default is true) activeMenu: '/example/list' if set path, the sidebar will highlight the path you set } */
详情参见:布局 | vue-element-admin (panjiachen.github.io)
/** * Note: sub-menu only appear when route children.length >= 1 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html * * hidden: true true如果设置为true,项目将不会显示在侧栏中(默认为false) * alwaysShow: true 如果设置为true,将始终显示根菜单 * if not set alwaysShow, when item has more than one children route, * it will becomes nested mode, otherwise not show the root menu * redirect: noRedirect 如果未设置为alwaysShow,则当项目具有多个子路径时它将变为嵌套模式,否则不显示根菜单 * name:'router-name' 该名称由<keep-alive>使用(必须设置 * meta : { roles: ['admin','editor'] 角色:['admin'、'editor']控制页面角色(您可以设置多个角色) title: 'title' 标题:“title”侧栏和面包屑中显示的名称(推荐集) icon: 'svg-name'/'el-icon-x' 图标:“svg名称”/“el-icon-x”侧栏中显示的图标 noCache: true noCache:true如果设置为true,则不会缓存页面(默认为false) affix: true 粘贴:true如果设置为true,标签将粘贴在标签视图中 breadcrumb: false 面包屑:false如果设置为false,项目将隐藏在面包屑中(默认为true) activeMenu: '/example/list' 如果设置了路径,侧栏将突出显示您设置的路径 } */
路径: \src\router
功能:路由设置
标签:will,set,false,name,show,配置,说明,true,路由 来源: https://www.cnblogs.com/xiongwei/p/16635618.html