Skip to content

Commit 1a0da58

Browse files
committed
fix(router): use name for routing
1 parent 4e29097 commit 1a0da58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/router/create-router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const createRouter = ({ baseName = '', baseUrl = import.meta.env.BASE_URL
2323
routes: [
2424
{
2525
path: `${baseName}/:pathMatch(.*)`,
26-
redirect: `${baseName}/`,
26+
redirect: { name: Route.Progress },
2727
},
2828
..._routes,
2929
],

src/router/routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export enum Route {
1313
export const routes: RouteRecordRaw[] = [
1414
{
1515
path: '/',
16-
redirect: Route.Progress,
16+
redirect: { name: Route.Progress },
1717
},
1818
{
1919
path: `/${Route.Login}`,

0 commit comments

Comments
 (0)