import pathRegexp from "path-to-regexp"; /** * props.route.routes * @param router [{}] * @param pathname string */ export const getActiveMenu = (menus = [], pathname) => { for(let i=0;i { for(let i=0;i