feat: export router (#53)

在store模块中,可能需要router跳转
This commit is contained in:
hb0730 2021-10-09 19:43:11 +08:00 committed by GitHub
parent fc5cec54b0
commit 86cde31aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {