From 1d37cc9cb15c01d0f411f2c8c384f71a612fb2b9 Mon Sep 17 00:00:00 2001
From: litian <2804272236@qq.com>
Date: 星期一, 14 四月 2025 15:23:33 +0800
Subject: [PATCH] xiugai

---
 vite.config.ts |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index ed7aa8f..ecb6c57 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -2,17 +2,25 @@
 
 import { defineConfig } from 'vite'
 import vue from '@vitejs/plugin-vue'
+import vueJsx from '@vitejs/plugin-vue-jsx';
 import electron from 'vite-plugin-electron'
 
 // https://vitejs.dev/config/
 export default defineConfig({
   base:"./",
   plugins: [
-    vue(),
+    vueJsx(),
+    vue({
+      template: {
+        compilerOptions: {
+          isCustomElement: (tag) => tag.includes('math-field')
+        }
+      }
+    }),
     // electron({
     //   // 閰嶇疆 Electron 鍏ュ彛鏂囦欢
     //   entry: 'electron-commonJS/main.js'
-    // }),
+    // }), 
   ],
   resolve: {
     alias: {
@@ -26,7 +34,7 @@
     cors: true, // 鍏佽璺ㄥ煙
     hmr: true,
     headers: {
-      "Access-Control-Allow-Origin": "*", // 鍏佽璺ㄥ煙璁块棶瀛愬簲鐢ㄩ〉闈�
+      "access-control-allow-origin": "*", // 鍏佽璺ㄥ煙璁块棶瀛愬簲鐢ㄩ〉闈�
     },
   },
   define: {
@@ -39,5 +47,5 @@
         additionalData: '@import "./src/assets/style/global.less";'
       }
     }
-  }
+  },
 })

--
Gitblit v1.9.1