- 在main.go中添加定时任务每10分钟同步可生产数量到WMS系统 - 为BomItem实体添加relatedStandard字段及相关CRUD方法 - 为InspectionRecord实体添加reportNo、materialCode、materialName等字段 - 更新ent schema确保新字段的验证和默认值设置 - 添加必要的数据库迁移和字段映射逻辑
19 lines
457 B
JavaScript
19 lines
457 B
JavaScript
import { defineConfig } from 'vite'
|
||
import vue from '@vitejs/plugin-vue'
|
||
|
||
// 构建输出到 Go 服务内嵌目录 ../web/static(emptyOutDir 清空旧产物)
|
||
export default defineConfig({
|
||
plugins: [vue()],
|
||
build: {
|
||
outDir: '../web/static',
|
||
emptyOutDir: false
|
||
},
|
||
server: {
|
||
port: 8893,
|
||
proxy: {
|
||
'/api': 'http://127.0.0.1:8892',
|
||
'/pdfopen': 'http://127.0.0.1:8892',
|
||
'/pdfview': 'http://127.0.0.1:8892'
|
||
}
|
||
}
|
||
}) |