Files
bj_power/bj_power_wms_client/frontend/vite.config.js
T
SunYF 47573e44b0 feat&fix: 完善半成品/序列号闭环流转逻辑
1. 调整物料编码字段为可空,优化注释说明
2. 修复Vite构建自动清空产物目录冲突问题
3. 优化前端提示文案与表单占位符
4. 为各前端项目添加内联SVG图标
5. 重构MES半成品流转逻辑,不再静默吞掉WMS错误并记录日志
6. 生成并添加空的WMS客户端静态文件
7. 完善Ent ORM模型的空值支持与查询谓词
8. 优化半成品入库接口,支持doneProcessCodes数组格式,新增SN反查物料编码逻辑
9. 更新帮助文档与操作手册
2026-09-01 14:30:26 +08:00

22 lines
616 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 构建产物直接写入 Go 网关的嵌入静态目录(go:embed all:web/static
export default defineConfig({
plugins: [vue()],
build: {
outDir: '../web/static',
// 不自动清空产物目录:自动清空会与系统安全删除机制冲突导致构建失败,
// 需要重新完整构建时手动执行 rm -rf ../web/static 后再 build。
emptyOutDir: false
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8891',
changeOrigin: true
}
}
}
})