소스 검색

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

ws456999 7 년 전
부모
커밋
6225aa6d57
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;