修改
This commit is contained in:
parent
024696f531
commit
b227dfb28e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user