From fd1aea16878dd4028c4111bf0fce1af8bb90381d Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Thu, 21 May 2026 17:10:19 +0800 Subject: [PATCH] =?UTF-8?q?build(=E5=89=8D=E7=AB=AF):=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=AD=90=E8=B7=AF=E5=BE=84=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dhtml=E6=9C=AB=E5=B0=BE=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配置vite的base为/app_03/、路由的basename为/app_03,同时修复index.html缺少末尾换行的问题 --- frontend/index.html | 2 +- frontend/src/app/routes.tsx | 2 +- frontend/vite.config.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 3b5aad2..75e76ae 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,4 +13,4 @@ - \ No newline at end of file + diff --git a/frontend/src/app/routes.tsx b/frontend/src/app/routes.tsx index b0ae23f..14586b2 100644 --- a/frontend/src/app/routes.tsx +++ b/frontend/src/app/routes.tsx @@ -125,4 +125,4 @@ export const router = createBrowserRouter([ }, ], }, -]); +], { basename: "/app_03" }); diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 0d1b314..b009173 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -5,6 +5,7 @@ import react from '@vitejs/plugin-react' import basicSsl from '@vitejs/plugin-basic-ssl' export default defineConfig({ + base: '/app_03/', plugins: [ // The React and Tailwind plugins are both required for Make, even if // Tailwind is not being actively used – do not remove them