소스 검색

feat: export router (#53)

在store模块中,可能需要router跳转
hb0730 3 년 전
부모
커밋
86cde31aaa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -65,7 +65,7 @@ export const addAsyncRoutes = (arrRoutes: Array<RouteComponent>) => {
   return arrRoutes;
 };
 
-const router: Router = createRouter({
+export const router: Router = createRouter({
   history: createWebHashHistory(),
   routes: ascending(constantRoutes).concat(...remainingRouter),
   scrollBehavior(to, from, savedPosition) {