From 8bb0a518dd4d9450370582c4d4ac3ae1dba1466b Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期五, 25 四月 2025 15:28:18 +0800 Subject: [PATCH] 资源 --- vite.config.ts | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 2f5b6f7..ecb6c57 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,13 +2,21 @@ 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' @@ -39,5 +47,5 @@ additionalData: '@import "./src/assets/style/global.less";' } } - } + }, }) -- Gitblit v1.9.1