chenrui  2 лет назад
Родитель
Сommit
91789b78fe
1 измененных файлов с 3 добавлено и 2 удалено
  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 = {
   path: '/role',
   component: Layout,
-  meta: { roles: ['role_menu'] },
+  meta: { roles: ['role_menu'], keepAlive: true },
   children: [
     {
       path: '/role',
@@ -84,7 +84,8 @@ const roleRoutes = {
         title: '角色管理',
         icon: 'role',
         imgstyle: 'ic_list_nav_character_default.png',
-        imgstyleup: 'ic_list_nav_character_check.png'
+        imgstyleup: 'ic_list_nav_character_check.png',
+        keepAlive: true
       },
       children: [
         {