瀏覽代碼

添加权限

zhaoke 2 年之前
父節點
當前提交
226db54155
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 2
      src/router/routes/routes-file-four.js
  2. 1 1
      src/router/routes/routes-file-one.js

+ 3 - 2
src/router/routes/routes-file-four.js

@@ -99,7 +99,7 @@ const roleRoutes = {
             }
           },
           redirect: '/',
-          meta: { title: '角色管理', isPage: 'role_page', keepAlive: false },
+          meta: { title: '角色管理', isPage: 'role_page', keepAlive: false, roles: ['role_page'] },
           children: [
             {
               path: '/',
@@ -158,7 +158,8 @@ const accountRoutes = {
           // },
           meta: {
             title: '账号管理',
-            keepAlive: false
+            keepAlive: false,
+            roles: ['account_page']
           },
           children: [
             {

+ 1 - 1
src/router/routes/routes-file-one.js

@@ -24,7 +24,7 @@ const BasicsDataRoutes = {
           path: '/BasicsData/airlineCompanyInfo',
           name: 'airlineCompanyInfo',
           component: () => import('@/views/BasicsData/views/airlineCompany/airlineCompanyInfo'),
-          meta: { title: '航司信息维护', keepAlive: false },
+          meta: { title: '航司信息维护', keepAlive: false, roles: ['airline_information_page'] },
           hidden: true,
           src: require('@/assets/nav/ic_data_top_default @2x.png'),
           srcer: require('@/assets/nav/ic_data_top_check@2x.png')