From f440ce2ade1961d9f5137e59f23566da9625470b Mon Sep 17 00:00:00 2001 From: qiube <18969599531@163.com> Date: Mon, 22 Dec 2025 13:21:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(router):=20=E6=9B=B4=E6=96=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B7=AF=E7=94=B1=E9=87=8D=E5=AE=9A=E5=90=91=E8=87=B3?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将首页路径 '/' 的组件加载改为重定向到 '/manage/product' - 移除了原先直接加载 ProductDetail 组件的配置 - 确保用户访问根路径时能正确跳转到产品管理界面 --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 6a4efd9..96f6ca8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,7 @@ const routes = [ { path: '/', name: 'Home', - component: ProductDetail + redirect: '/manage/product' }, { path: '/product/:id',