fix: resolve redirect not found issue and remove /demos prefix

- Resolved the issue where redirects were not found in the router
- Standardized the removal of the /demos prefix from routes
pull/48/MERGE
Li Kui 2024-07-16 07:59:58 +08:00
parent 09fa2af23d
commit 9021e992ad
2 changed files with 8 additions and 8 deletions

View File

@ -89,16 +89,16 @@ export class MenuController {
},
name: 'Demos',
path: '/demos',
redirect: '/demos/access',
redirect: '/access',
children: [
{
name: 'Access',
path: 'access',
path: '/access',
meta: {
icon: 'mdi:cloud-key-outline',
title: 'page.demos.access.backendPermissions',
},
redirect: '/demos/access/page-control',
redirect: '/access/page-control',
children: [
{
name: 'AccessPageControl',

View File

@ -14,7 +14,7 @@ const routes: RouteRecordRaw[] = [
},
name: 'Demos',
path: '/demos',
redirect: '/demos/access',
redirect: '/access',
children: [
{
meta: {
@ -22,8 +22,8 @@ const routes: RouteRecordRaw[] = [
title: $t('page.demos.access.frontendPermissions'),
},
name: 'Access',
path: 'access',
redirect: '/demos/access',
path: '/access',
redirect: '/access/page-control',
children: [
{
name: 'AccessPageControl',
@ -258,8 +258,8 @@ const routes: RouteRecordRaw[] = [
title: $t('page.demos.nested.title'),
},
name: 'Nested',
path: 'nested',
redirect: '/demos/nested/menu1',
path: '/nested',
redirect: '/nested/menu1',
children: [
{
name: 'Menu1',