zhangqing hai 1 ano
pai
achega
d5980f9f7a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/store/modules/user.js

+ 4 - 0
src/store/modules/user.js

@@ -27,6 +27,10 @@ const formatRouter = (list) => {
         authorities.push(p);
         p.hide = true;
       }
+      //报表菜单
+      if (p.source === 2 && p.extend) {
+        p.path = p.path + '/' + p.extend;
+      }
       // else {
       if (p.children?.length) {
         p.children = fn(p.children, curPath);