BreadcrumbNameMap:菜单名文件;1、新建路由和菜单名对应的BreadcrumbNameMap.js文件,导入到frame.js文件中(控制路由跳转,即页面显示);2.将Breadcrumb3导入到frame.js文件中,获取当前页面的url(即:props.location.pathname)4.在ahooks中使用useLocalStorageState存储路由,这样面包屑仍然会显示const[choseRoutes,setChose]=useLocalStorageState('choseRoutes',()=>{return[];});5.获取所有显示页面的路由if(choseRoutes.length>0){setChose([...choseRoutes,url]);}else{setChose([url]);}6.过滤已经完成ExistingroutesconstremainRoutes=chosenRoutes.filter((item,RouteIndex,array)=>{returnarray.indexOf(item)===RouteIndex;});7.遍历路由数组,显示remainRoutes.map((i,openIndex)=>{return(
