Ver código fonte

修复五级路由缓存无效问题

RuoYi 2 anos atrás
pai
commit
c3ab80967c
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      ruoyi-ui/src/store/modules/permission.js

+ 4 - 0
ruoyi-ui/src/store/modules/permission.js

@@ -98,6 +98,10 @@ function filterChildren(childrenMap, lastRouter = false) {
98 98
     }
99 99
     if (lastRouter) {
100 100
       el.path = lastRouter.path + '/' + el.path
101
+      if (el.children && el.children.length) {
102
+        children = children.concat(filterChildren(el.children, el))
103
+        return
104
+      }
101 105
     }
102 106
     children = children.concat(el)
103 107
   })