Explorar o código

添加权限标识

zhaoke %!s(int64=2) %!d(string=hai) anos
pai
achega
37d93bd5f6
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/router/routes/routes-file-three.js

+ 2 - 1
src/router/routes/routes-file-three.js

@@ -3,6 +3,7 @@ const integrationRoutes = {
   path: '/',
   component: Layout,
   redirect: "/integration",
+  meta: { roles: ['dataCollect'] },
   children: [
     {
       path: '/integration',
@@ -13,7 +14,7 @@ const integrationRoutes = {
           path: '/integration',
           name: 'integration',
           component: {
-            render(c) {
+            render (c) {
               return c('router-view')
             }
           },