|  |  | 
 |  |  | import Layout from '@/layout/index' | 
 |  |  | import ParentView from '@/components/ParentView' | 
 |  |  | import InnerLink from '@/layout/components/InnerLink' | 
 |  |  | import store from "@/store"; | 
 |  |  |  | 
 |  |  |  | 
 |  |  | const permission = { | 
 |  |  |   state: { | 
 |  |  | 
 |  |  |           commit('SET_DEFAULT_ROUTES', sidebarRoutes) | 
 |  |  |           commit('SET_TOPBAR_ROUTES', sidebarRoutes) | 
 |  |  |           resolve(rewriteRoutes) | 
 |  |  |           console.log(res.data,'路由数据'); | 
 |  |  |           const result = res.data.find(item => item.name == "Followvisit"); | 
 |  |  |           Processrouting(result) | 
 |  |  |  | 
 |  |  |         }) | 
 |  |  |       }) | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | function Processrouting(result){ | 
 |  |  |   const arrf=[]; | 
 |  |  |   const arr=store.getters.Serviceauthority; | 
 |  |  |   console.log(result,'result'); | 
 |  |  |   console.log(arr,'arr'); | 
 |  |  |   result.children.forEach(objA => { | 
 |  |  |     arr.forEach(objB => { | 
 |  |  |       if (objA.meta.title === objB.label) { | 
 |  |  |         arrf.push(objB); | 
 |  |  |       } | 
 |  |  |     }); | 
 |  |  |   }); | 
 |  |  |   console.log(arrf,'arrf'); | 
 |  |  |   store.commit('SET_Serviceauthority', arrf); | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 遍历后台传来的路由字符串,转换为组件对象 | 
 |  |  | function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { |