This commit is contained in:
陈红丽 2024-09-03 10:12:03 +08:00
parent 024696f531
commit b227dfb28e

View File

@ -20,7 +20,7 @@ LayoutMap.set('IFRAME', Iframe);
*/
export const routerGenerator = (routerMap, parent?): any[] => {
return routerMap.map((item) => {
const names = /http(s)?:/.test(item.path)?item.path:item.path.replaceAll('/','')
const names = item.target==2?item.component:item.path.replaceAll('/','')
item.meta = {
title:item.parentId==0 && item.children.length==0?'':item.name,
icon:item.icon,