Explorar el Código

添加权限标识

zhaoke hace 3 años
padre
commit
37d93bd5f6
Se han modificado 1 ficheros con 2 adiciones y 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')
             }
           },