From 6aec41b450e0cd40aa63f6aa8fd51e5b9dfaebc6 Mon Sep 17 00:00:00 2001 From: liruiqiang <3151805288@qq.com> Date: Thu, 23 Oct 2025 15:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 698e9ec..f8584ac 100644 --- a/vite.config.js +++ b/vite.config.js @@ -29,7 +29,7 @@ export default defineConfig(({ mode, command }) => { outDir: outDirMap[mode] || 'dist', rollupOptions: { input: { - main: './index.html', + main: fileURLToPath(new URL('./index.html', import.meta.url)), }, output: { entryFileNames: '[name].js', // 入口文件命名