From d01117c6ead8616ffba9f6e6eb266efc952e95e7 Mon Sep 17 00:00:00 2001 From: meowrain Date: Sat, 10 Jan 2026 19:37:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(router):=20=E6=B7=BB=E5=8A=A0=E6=A0=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=87=8D=E5=AE=9A=E5=90=91=E5=88=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加根路径("/")的重定向配置,使其自动跳转到首页("/home"),并设置该路由不在菜单中显示 --- src/router/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 1950d54..ce9f09b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -9,6 +9,12 @@ import AiChatView from "../views/ai/AiChatView.vue"; * 路由配置 */ export const routes: Array = [ + { + path: "/", + name: "root", + redirect: "/home", + meta: { hideInMenu: true }, + }, { path: "/home", name: "HomeView",