Skip to content

Commit b92ca41

Browse files
committed
fix: fix 'page not found' error on clicking breadcrumbs
1 parent 54da49d commit b92ca41

File tree

1 file changed

+4
-3
lines changed
  • apps/web-antd/src/router/routes/modules

1 file changed

+4
-3
lines changed

apps/web-antd/src/router/routes/modules/demos.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@ const routes: RouteRecordRaw[] = [
1515
},
1616
name: 'Demos',
1717
path: '/demos',
18-
redirect: '/demos/access/frontend',
18+
redirect: '/demos/access',
1919
children: [
2020
{
2121
meta: {
2222
icon: 'mdi:shield-key-outline',
2323
title: $t('page.demos.access.title'),
2424
},
2525
name: 'Access',
26-
path: '/access',
27-
redirect: '/access/frontend',
26+
path: 'access',
27+
redirect: '/demos/access/frontend',
2828
children: [
2929
{
3030
name: 'AccessFrontend',
3131
path: 'frontend',
32+
redirect: '/demos/access/frontend/page-control',
3233
meta: {
3334
icon: 'mdi:table-key',
3435
title: $t('page.demos.access.frontend-control'),

0 commit comments

Comments
 (0)