Commit 6225aa6d authored by ws456999's avatar ws456999 Committed by ddcat1115

πŸ› fix inner exact cover custom exact bug (#1148)

parent 303c5e43
...@@ -141,10 +141,10 @@ export function getRoutes(path, routerData) { ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment