From c411fb5102af81d1c4cc72ed610304c1ef715da6 Mon Sep 17 00:00:00 2001 From: fyy <2717885210@qq.com> Date: Mon, 14 Jul 2025 16:04:52 +0800 Subject: [PATCH] =?UTF-8?q?=20feat:=20=E5=88=A0=E9=99=A4=E6=A6=82=E8=A7=88?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/router/routes/local.ts | 55 +++--------------------- 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/apps/web-antd/src/router/routes/local.ts b/apps/web-antd/src/router/routes/local.ts index 0b4f0cac..9beca3c2 100644 --- a/apps/web-antd/src/router/routes/local.ts +++ b/apps/web-antd/src/router/routes/local.ts @@ -30,58 +30,13 @@ const localRoutes: RouteRecordStringComponent[] = [ */ export const localMenuList: RouteRecordStringComponent[] = [ { - component: 'BasicLayout', + name: 'Analytics', + path: '/analytics', + component: '/dashboard/analytics/index', meta: { - order: -1, - title: 'page.dashboard.title', - // 不使用基础布局(仅在顶级生效) - noBasicLayout: true, + affixTab: true, + title: '首页', }, - name: 'Dashboard', - path: '/', - redirect: '/analytics', - children: [ - { - name: 'Analytics', - path: '/analytics', - component: '/dashboard/analytics/index', - meta: { - affixTab: true, - title: 'page.dashboard.analytics', - }, - }, - { - name: 'Workspace', - path: '/workspace', - component: '/dashboard/workspace/index', - meta: { - title: 'page.dashboard.workspace', - }, - }, - { - name: 'VbenDocument', - path: '/vben-admin/document', - component: 'IFrameView', - meta: { - icon: 'lucide:book-open-text', - iframeSrc: 'https://dapdap.top', - keepAlive: true, - title: $t('demos.vben.document'), - }, - }, - { - name: 'V5UpdateLog', - path: '/changelog', - component: '/演示使用自行删除/changelog/index', - meta: { - icon: 'lucide:book-open-text', - keepAlive: true, - title: '更新记录', - badge: `当前: ${version}`, - badgeVariants: 'bg-primary', - }, - }, - ], }, { component: '/_core/about/index',