From 87fcbc5bfb0152d483cf823c8016131dec3b4761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=89=E9=91=AB=E5=8D=87?= Date: Tue, 19 May 2026 16:28:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20vite=20=E6=9E=84=E5=BB=BA=E4=BA=A7?= =?UTF-8?q?=E7=89=A9=E4=BD=BF=E7=94=A8=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=20(base:=20"./")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- frontend-web/vite.config.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend-web/vite.config.ts b/frontend-web/vite.config.ts index b560c6d7..8d6e4335 100644 --- a/frontend-web/vite.config.ts +++ b/frontend-web/vite.config.ts @@ -1,13 +1,13 @@ -import path from "node:path"; -import { fileURLToPath } from "node:url"; - -import react from "@vitejs/plugin-react"; -import { defineConfig } from "vite"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; const rootDir = fileURLToPath(new URL(".", import.meta.url)); -export default defineConfig({ - plugins: [react()], +export default defineConfig({ + plugins: [react()], resolve: { alias: [ { @@ -32,6 +32,7 @@ export default defineConfig({ }, ], }, + "base":"./", server: { port: 5173, },