From b90bbab2877bc3dfeeebdf34625f2deb636daab3 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Mon, 28 Sep 2026 17:29:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(talk):=20=E5=85=BC=E5=AE=B9=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E8=8F=9C=E5=8D=95=E9=93=BE=E6=8E=A5=EF=BC=88/talk/ind?= =?UTF-8?q?ex=20=E9=87=8D=E5=AE=9A=E5=90=91=E5=88=B0=20/talk=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 后端菜单链接历史上写过 pages/talk/index.html,前端会规范化为 /talk/index - 前端菜单有 localStorage 缓存,加此重定向兜住缓存里的旧链接,避免点进去 404 --- src/router/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 07ca497..016c040 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -204,6 +204,9 @@ export const staticRoutes: RouteRecordRaw[] = [ component: () => import('@/views/talk/Talk.vue'), meta: { title: 'Talk', icon: 'ChatDotRound', requiresAuth: true, menuGuarded: true }, }, + // 兼容历史菜单链接:MenuLink 曾写 pages/talk/index.html(规范化后为 /talk/index), + // 现清单已改为 pages/talk.html(→ /talk);此重定向兜住浏览器缓存的旧菜单 + { path: 'talk/index', redirect: '/talk' }, // === Gitea 代码托管对接 === { path: 'gitea/mine',