utilts.js 188 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 /** 将全部二级路由转为一级路由 */ export const getAllRouter = route => { const childRoute = [] route.map(e => childRoute.push(...e.childMenus)) return childRoute }