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',
|
name: 'Demos',
|
||||||
path: '/demos',
|
path: '/demos',
|
||||||
redirect: '/demos/access',
|
redirect: '/access',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'Access',
|
name: 'Access',
|
||||||
path: 'access',
|
path: '/access',
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'mdi:cloud-key-outline',
|
icon: 'mdi:cloud-key-outline',
|
||||||
title: 'page.demos.access.backendPermissions',
|
title: 'page.demos.access.backendPermissions',
|
||||||
},
|
},
|
||||||
redirect: '/demos/access/page-control',
|
redirect: '/access/page-control',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'AccessPageControl',
|
name: 'AccessPageControl',
|
||||||
|
|
|
@ -14,7 +14,7 @@ const routes: RouteRecordRaw[] = [
|
||||||
},
|
},
|
||||||
name: 'Demos',
|
name: 'Demos',
|
||||||
path: '/demos',
|
path: '/demos',
|
||||||
redirect: '/demos/access',
|
redirect: '/access',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
meta: {
|
meta: {
|
||||||
|
@ -22,8 +22,8 @@ const routes: RouteRecordRaw[] = [
|
||||||
title: $t('page.demos.access.frontendPermissions'),
|
title: $t('page.demos.access.frontendPermissions'),
|
||||||
},
|
},
|
||||||
name: 'Access',
|
name: 'Access',
|
||||||
path: 'access',
|
path: '/access',
|
||||||
redirect: '/demos/access',
|
redirect: '/access/page-control',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'AccessPageControl',
|
name: 'AccessPageControl',
|
||||||
|
@ -258,8 +258,8 @@ const routes: RouteRecordRaw[] = [
|
||||||
title: $t('page.demos.nested.title'),
|
title: $t('page.demos.nested.title'),
|
||||||
},
|
},
|
||||||
name: 'Nested',
|
name: 'Nested',
|
||||||
path: 'nested',
|
path: '/nested',
|
||||||
redirect: '/demos/nested/menu1',
|
redirect: '/nested/menu1',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'Menu1',
|
name: 'Menu1',
|
||||||
|
|
Loading…
Reference in New Issue