|
|
@ -141,10 +141,10 @@ export function getRoutes(path, routerData) { |
|
|
const renderRoutes = renderArr.map((item) => { |
|
|
const renderRoutes = renderArr.map((item) => { |
|
|
const exact = !routes.some(route => route !== item && getRelation(route, item) === 1); |
|
|
const exact = !routes.some(route => route !== item && getRelation(route, item) === 1); |
|
|
return { |
|
|
return { |
|
|
|
|
|
exact, |
|
|
...routerData[`${path}${item}`], |
|
|
...routerData[`${path}${item}`], |
|
|
key: `${path}${item}`, |
|
|
key: `${path}${item}`, |
|
|
path: `${path}${item}`, |
|
|
path: `${path}${item}`, |
|
|
exact, |
|
|
|
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
|
return renderRoutes; |
|
|
return renderRoutes; |
|
|
|