diff --git a/apps/backend-mock/src/modules/menu/menu.controller.ts b/apps/backend-mock/src/modules/menu/menu.controller.ts index a8155365..d2552332 100644 --- a/apps/backend-mock/src/modules/menu/menu.controller.ts +++ b/apps/backend-mock/src/modules/menu/menu.controller.ts @@ -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', diff --git a/apps/web-antd/src/router/routes/modules/demos.ts b/apps/web-antd/src/router/routes/modules/demos.ts index 1d8bd9eb..a130c51e 100644 --- a/apps/web-antd/src/router/routes/modules/demos.ts +++ b/apps/web-antd/src/router/routes/modules/demos.ts @@ -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',