改为本地依赖

This commit is contained in:
xianyi
2025-11-21 17:31:12 +08:00
parent 13eb51d29c
commit 8f5e874c01
4 changed files with 28 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
base: "./", // 确保资源路径是相对的,以便在 Electron 中加载
publicDir: "public", // 指定 public 目录
server: {
port: 5173,
},