fix: fix 'page not found' error on clicking breadcrumbs

pull/48/MERGE
Li Kui 2024-07-04 10:03:58 +08:00
parent 54da49d16b
commit b92ca41aa2
1 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ const routes: RouteRecordRaw[] = [
}, },
name: 'Demos', name: 'Demos',
path: '/demos', path: '/demos',
redirect: '/demos/access/frontend', redirect: '/demos/access',
children: [ children: [
{ {
meta: { meta: {
@ -23,12 +23,13 @@ const routes: RouteRecordRaw[] = [
title: $t('page.demos.access.title'), title: $t('page.demos.access.title'),
}, },
name: 'Access', name: 'Access',
path: '/access', path: 'access',
redirect: '/access/frontend', redirect: '/demos/access/frontend',
children: [ children: [
{ {
name: 'AccessFrontend', name: 'AccessFrontend',
path: 'frontend', path: 'frontend',
redirect: '/demos/access/frontend/page-control',
meta: { meta: {
icon: 'mdi:table-key', icon: 'mdi:table-key',
title: $t('page.demos.access.frontend-control'), title: $t('page.demos.access.frontend-control'),