chenrui  2 years ago
parent
commit
91789b78fe
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/router/routes/routes-file-four.js

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

@@ -75,7 +75,7 @@ const authorityRoutes = {
 const roleRoutes = {
 const roleRoutes = {
   path: '/role',
   path: '/role',
   component: Layout,
   component: Layout,
-  meta: { roles: ['role_menu'] },
+  meta: { roles: ['role_menu'], keepAlive: true },
   children: [
   children: [
     {
     {
       path: '/role',
       path: '/role',
@@ -84,7 +84,8 @@ const roleRoutes = {
         title: '角色管理',
         title: '角色管理',
         icon: 'role',
         icon: 'role',
         imgstyle: 'ic_list_nav_character_default.png',
         imgstyle: 'ic_list_nav_character_default.png',
-        imgstyleup: 'ic_list_nav_character_check.png'
+        imgstyleup: 'ic_list_nav_character_check.png',
+        keepAlive: true
       },
       },
       children: [
       children: [
         {
         {