首页 > 其他分享 >项目路由配置说明

项目路由配置说明

时间:2022-08-29 13:24:45浏览次数:71  
标签:will set false name show 配置 说明 true 路由

/**
 * 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,路由
From: https://www.cnblogs.com/xiongwei/p/16635618.html

相关文章

  • nginx安全配置
    #safe_config_staradd_headerX-Xss-Protection"1;mode=block";add_headerX-Content-Type-Optionsnosniff;#add_headerX-Frame-OptionsDEN......
  • SSH免密登录的配置
    ssh登录登录ssh一般情况有两种方法密码登录秘钥登录(免密)大部分情况我们选择都是输入密码登录,平常使用暂时没有遇到什么问题。最近我编写了一些使用scp来传输文件的......
  • SpringCloud中pom文件的配置
    pom文件中添加依赖SpringCloud父依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.......
  • 【ubuntu 18.04 Server】配置root密码,并设置远程访问
    1、设置root密码使用具有root权限的账户执行sudopasswdroot   2、配置远程ssh访问sudoapt-getinstallopenssh-server编辑配置文件sudovim/etc/ss......
  • Modbus485转Profinet网关连接水表模块配置案例
     本案例控制的是Modbus485水表模块。系统主PLC选用西门子CPU,通过Modbus转Profinet网关采集水表模块通讯数据。 1、首先创建新项目文件; 2、导入GSD文件。将小疆......
  • Logstash配置详解
    转自:https://blog.csdn.net/hushukang/article/details/844231841.InputPlugin1.1从文件输入从文件读取数据,如常见的日志文件。文件读取通常要解决几个问题:序号......
  • axios的特点 - 支持多种请求方式 - 常见的配置选项
    1.特点:1.在浏览器中发送XMLHttpRequest请求2.在node.js中发送http请求3.支持PromiseAPI4.拦截请求和响应 2.支持多种请求方式:axios(c......
  • mysql配置文件相关
    公司数据库从WINDOWS迁移到LINUX发现连接时报错.大概意思是不支持分组查询.后来网上查询说是需在配置文件中增加如下内容,更改SQL_MODE.sql_mode=STRICT_TRANS_TABLES,......
  • 二级目录进行伪静态配置
    本文主要为了记录使用pb的过程中遇到的伪静态配置问题.使用背景:在phpstudy中设置好了伪静态规则,但是因为一些其他原因需要添加新的伪静态规则.(phpstudy中设置的伪静态......
  • identity4 系列————持久化配置篇[五]
    前言上面已经介绍了3个例子了,并且介绍了如何去使用identity。但是在前面的例子中,我们使用的都是在内存中操作,那么正式上线可能需要持久到数据库中。这里值得说明的是,并......