Browse Source

添加权限标识

zhaoke 2 years ago
parent
commit
37d93bd5f6
1 changed files with 2 additions and 1 deletions
  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')
             }
           },