浏览代码

perf:rm role

Pan 7 年之前
父节点
当前提交
868673778e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/router/index.js

+ 1 - 2
src/router/index.js

14
 * redirect: noredirect           if `redirect:noredirect` will no redirct in the breadcrumb
14
 * redirect: noredirect           if `redirect:noredirect` will no redirct in the breadcrumb
15
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
15
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
16
 * meta : {
16
 * meta : {
17
-    role: ['admin','editor']     will control the page role (you can set multiple roles)
18
     title: 'title'               the name show in submenu and breadcrumb (recommend set)
17
     title: 'title'               the name show in submenu and breadcrumb (recommend set)
19
     icon: 'svg-name'             the icon show in the sidebar,
18
     icon: 'svg-name'             the icon show in the sidebar,
20
   }
19
   }
59
       path: 'index',
58
       path: 'index',
60
       name: 'Table',
59
       name: 'Table',
61
       component: _import('table/index'),
60
       component: _import('table/index'),
62
-      meta: { title: 'Table', icon: 'table', role: ['admin'] }}
61
+      meta: { title: 'Table', icon: 'table' }}
63
     ]
62
     ]
64
   },
63
   },
65
 
64