From b92ca41aa216d14d4711c30bc08a05264f4b3861 Mon Sep 17 00:00:00 2001 From: Li Kui <90845831+likui628@users.noreply.github.com> Date: Thu, 4 Jul 2024 10:03:58 +0800 Subject: [PATCH] fix: fix 'page not found' error on clicking breadcrumbs --- apps/web-antd/src/router/routes/modules/demos.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/router/routes/modules/demos.ts b/apps/web-antd/src/router/routes/modules/demos.ts index de631d38..bc5fd1dd 100644 --- a/apps/web-antd/src/router/routes/modules/demos.ts +++ b/apps/web-antd/src/router/routes/modules/demos.ts @@ -15,7 +15,7 @@ const routes: RouteRecordRaw[] = [ }, name: 'Demos', path: '/demos', - redirect: '/demos/access/frontend', + redirect: '/demos/access', children: [ { meta: { @@ -23,12 +23,13 @@ const routes: RouteRecordRaw[] = [ title: $t('page.demos.access.title'), }, name: 'Access', - path: '/access', - redirect: '/access/frontend', + path: 'access', + redirect: '/demos/access/frontend', children: [ { name: 'AccessFrontend', path: 'frontend', + redirect: '/demos/access/frontend/page-control', meta: { icon: 'mdi:table-key', title: $t('page.demos.access.frontend-control'),