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 routespull/48/MERGE
parent
09fa2af23d
commit
9021e992ad
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue