巡检日,周,月完成,数据概况待修改

This commit is contained in:
Zy
2026-04-22 16:05:44 +08:00
parent 48852a33ec
commit 04eb40d0e4
55 changed files with 1583 additions and 422 deletions

View File

@@ -36,17 +36,15 @@ export default defineConfig(({ mode, command }) => {
build: {
outDir: 'dist',
cleanOutDir: true,
sourcemap: !isBuild, // ✅ 优化6开发环境开启 sourcemap 方便调试
// ✅ 1. 显式指定使用 terser 压缩
minify: 'terser',
sourcemap: false, // 生产关闭
minify: isBuild ? 'terser' : false, // 只在打包时压缩
terserOptions: {
compress: {
drop_console: isBuild,
drop_debugger: isBuild
},
format: {
// 除所有注释
comments: false
comments: false // 除所有注释
}
},
rollupOptions: {