Commit 9021e992 by Li Kui

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
1 parent 09fa2af2
......@@ -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',
......
......@@ -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',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!