jiaxing.zhou

refactor(store): 注释掉屏蔽 summary 路由的代码

- 在 permission.js 文件中,注释掉了用于屏蔽包含 'summary' 的路由的代码段
-这个修改可能会影响到系统的路由过滤逻辑,需要进一步测试确认
...@@ -64,10 +64,10 @@ const permission = { ...@@ -64,10 +64,10 @@ const permission = {
64 // 遍历后台传来的路由字符串,转换为组件对象 64 // 遍历后台传来的路由字符串,转换为组件对象
65 function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { 65 function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
66 return asyncRouterMap.filter(route => { 66 return asyncRouterMap.filter(route => {
67 - // 屏蔽包含 summary 的路由 67 + // // 屏蔽包含 summary 的路由
68 - if (route.path.includes('summary')) { 68 + // if (route.path.includes('summary')) {
69 - return false; 69 + // return false;
70 - } 70 + // }
71 if (type && route.children) { 71 if (type && route.children) {
72 route.children = filterChildren(route.children) 72 route.children = filterChildren(route.children)
73 } 73 }
......