From 8a535b965a29146560dd4a9bceff63a70d886092 Mon Sep 17 00:00:00 2001 From: ZLY Date: Wed, 10 Sep 2025 15:09:53 +0800 Subject: [PATCH] =?UTF-8?q?redirect:=20=E4=BF=AE=E6=94=B9=E6=A0=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=87=8D=E5=AE=9A=E5=90=91=E8=87=B3=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将根路径 "/" 的重定向目标从 "/dashboard/workplace" 修改为 "/login"- 确保用户在访问根路径时能正确跳转到登录页面 --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index d3a199a..6adbc63 100644 --- a/next.config.js +++ b/next.config.js @@ -43,7 +43,7 @@ module.exports = withLess( return [ { source: '/', - destination: '/dashboard/workplace', + destination: '/login', permanent: true } ];