Procházet zdrojové kódy

:bug: fix inner exact cover custom exact bug (#1148)

ws456999 před 7 roky
rodič
revize
6225aa6d57
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/utils/utils.js

+ 1 - 1
src/utils/utils.js

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