From 91db9246d3955e126cbb27456d10b9be43fa8882 Mon Sep 17 00:00:00 2001 From: LiJiLong <1711559666@qq.com> Date: Wed, 28 Jan 2026 08:03:11 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20frontend/vite.config.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 7e933af..207e640 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react'; import path from 'path'; export default defineConfig({ + base: './', // 设置基础路径为相对路径 plugins: [react()], resolve: { alias: {