● fix: 修复 Vite 8 前端编译及运行时错误

- main.js: 修复 createApp/mount 缺失导致 app 未定义
  - chineseMedicineDialog: defineModel → props+emit 兼容 Vue 3.5
  - el-form-nan-plugin: 修正 try/catch 括号匹配
  - vite.config: CSS 压缩器切换为 esbuild
This commit is contained in:
wangjian963
2026-06-03 13:09:04 +08:00
parent 207516ee86
commit 7ca0b89cb2
4 changed files with 21 additions and 10 deletions

View File

@@ -55,6 +55,9 @@ export default defineConfig(({ mode, command }) => {
},
},
},
build: {
cssMinify: 'esbuild',
},
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
css: {
preprocessorOptions: {