vite.config.ts
@@ -6,6 +6,7 @@ // https://vitejs.dev/config/ export default defineConfig({ base:"./", plugins: [ vue(), electron({ @@ -25,7 +26,7 @@ cors: true, // 允许跨域 hmr: true, headers: { "Access-Control-Allow-Origin": "*", // 允许跨域访问子应用页面 "access-control-allow-origin": "*", // 允许跨域访问子应用页面 }, }, define: {