From 069235a065190959b74cb5d0978ae61ff785bc09 Mon Sep 17 00:00:00 2001 From: hu xiaotong <416314413@163.com> Date: Thu, 26 Jun 2025 08:22:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(env):=20=E6=9B=B4=E6=96=B0=20API=20?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=B9=B6=E6=B3=A8=E9=87=8A=E6=8E=89=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A0=8F=E4=B8=AD=E7=9A=84=E5=AF=B9=E6=88=98=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 VITE_API_BASE_URL 从 http://localhost:48080/app-api 修改为 http://localhost:8283/app-api - 在 Navbar 组件中注释掉对战信息的导航项 --- .env.development | 2 +- src/components/Navbar.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index 6d8862f..0cb3782 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # API 基础路径 -VITE_API_BASE_URL=http://localhost:48080/app-api +VITE_API_BASE_URL=http://localhost:8283/app-api # 开发环境配置 NODE_ENV=development \ No newline at end of file diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 5369e8a..f4f1653 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -12,7 +12,7 @@ interface NavItem { const navItems: NavItem[] = [ { path: "/", label: "角色列表" }, - { path: "/gvg", label: "对战信息" }, + // { path: "/gvg", label: "对战信息" }, // { path: "/home", label: "主页" }, // { path: "/characters", label: "角色列表" }, // { path: "/builds", label: "配装攻略" },