chenrui  2 år sedan
förälder
incheckning
5244dc838c

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

@@ -13,7 +13,7 @@ import Layout from '@/layout'
 const authorityRoutes = {
   path: '/authority',
   component: Layout,
-  meta: { roles: ['authority_menu'] },
+  meta: { roles: ['authority_menu'], keepAlive: true },
   children: [
     {
       path: '/authority',
@@ -22,7 +22,8 @@ const authorityRoutes = {
         title: '权限管理',
         icon: 'authority',
         imgstyle: 'ic_list_nav_permissions_default.png',
-        imgstyleup: 'ic_list_nav_permissions_check.png'
+        imgstyleup: 'ic_list_nav_permissions_check.png',
+        keepAlive: true
       },
       children: [
         {
@@ -101,7 +102,8 @@ const roleRoutes = {
           children: [
             {
               path: '/',
-              component: () => import('@/views/authorityManagement/components/authorityRoleHome')
+              component: () => import('@/views/authorityManagement/components/authorityRoleHome'),
+              meta: { title: '角色管理', keepAlive: true },
             },
             {
               path: 'addRole',

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

@@ -58,7 +58,7 @@ const BasicsDataRoutes = {
           path: '/BasicsData/deployNode',
           name: 'deployNode',
           component: { render(c) { return c('router-view') } },
-          meta: { title: '节点信息维护' },
+          meta: { title: '节点信息维护', keepAlive: true },
           hidden: true,
           src: require('@/assets/nav/ic_data_top_default @2x.png'),
           srcer: require('@/assets/nav/ic_data_top_check@2x.png'),
@@ -66,6 +66,7 @@ const BasicsDataRoutes = {
             {
               path: '/BasicsData/deployNode',
               component: () => import('@/views/BasicsData/views/deployNode/deployNodeHome'),
+              meta: { title: '节点信息维护', keepAlive: true },
             },
             {
               path: '/BasicsData/deployNodeChild',

+ 3 - 0
src/router/routes/routes-file-six.js

@@ -3,6 +3,9 @@ import Layout from '@/layout'
 const statisticsChartsRoutes = {
   path: '/statisticsCharts',
   component: Layout,
+  meta: {
+    title: '统计图表', keepAlive: true
+  },
   children: [
     {
       path: '/statisticsCharts',

+ 3 - 0
src/router/routes/routes-file-two.js

@@ -22,6 +22,7 @@ const systemSettingsRoutes = {
           children: [
             {
               path: '/systemSettings',
+              meta: { title: '服务管理', keepAlive: true },
               component: () => import('@/views/systemSettings/views/serviceManagement/serviceHome'),
             },
             {
@@ -82,6 +83,7 @@ const systemSettingsRoutes = {
           srcer: require('@/assets/nav/ic_setting_top_check.png'),
           children: [{
             path: '/systemSettings/queryTemplate',
+            meta: { title: '查询模板', keepAlive: true },
             component: () => import('@/views/systemSettings/views/queryTemplate/queryTemplate'),
           },
           {
@@ -123,6 +125,7 @@ const systemSettingsRoutes = {
           srcer: require('@/assets/nav/ic_setting_top_check.png'),
           children: [{
             path: '/systemSettings/datastructure',
+            meta: { title: '数据结构', keepAlive: true },
             component: () => import('@/views/systemSettings/views/datastructure/datastructureHome'),
           },
           {