Pan 7 роки тому
батько
коміт
868673778e
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      src/router/index.js

+ 1 - 2
src/router/index.js

@@ -14,7 +14,6 @@ import Layout from '../views/layout/Layout'
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,7 +58,7 @@ export const constantRouterMap = [
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