mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 09:40:25 +08:00
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
This commit is contained in:
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
Block a user