zhangqing 1 rok temu
rodzic
commit
d5980f9f7a
1 zmienionych plików z 4 dodań i 0 usunięć
  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);