litian
2024-06-12 3a80faf0196f8dfa1b6cdb26ece68b37842c66b1
vite.config.ts
@@ -6,12 +6,13 @@
// https://vitejs.dev/config/
export default defineConfig({
  base:"./",
  plugins: [
    vue(),
    electron({
      // 配置 Electron 入口文件
      entry: 'electron-commonJS/main.js'
    }),
    // electron({
    //   // 配置 Electron 入口文件
    //   entry: 'electron-commonJS/main.js'
    // }),
  ],
  resolve: {
    alias: {
@@ -25,7 +26,7 @@
    cors: true, // 允许跨域
    hmr: true,
    headers: {
      "Access-Control-Allow-Origin": "*", // 允许跨域访问子应用页面
      "access-control-allow-origin": "*", // 允许跨域访问子应用页面
    },
  },
  define: {