fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean

This commit is contained in:
SunYF
2026-08-27 10:56:41 +08:00
parent 380715f8a9
commit 371b494c54
523 changed files with 67923 additions and 24758 deletions
+6 -13
View File
@@ -22,27 +22,20 @@ export default defineConfig(({ command, mode }) => {
enable: command === 'serve' && useMock,
}),
],
css: {
preprocessorOptions: {
scss: {
api: 'legacy', // 使用 legacy API 兼容旧版 sass
},
},
},
server: {
host: '0.0.0.0',
port: env.VITE_PORT,
open: true,
cors: true,
hmr: {
host: 'localhost', // 修复 HMR WebSocket 连接问题
},
hmr: true,
proxy: {
'^/(api/*|sse$|uploads/*)': {
'/api': {
target: 'http://127.0.0.1:8888',
changeOrigin: true
},
'/uploads': {
target: 'http://127.0.0.1:8888',
ws: false,
changeOrigin: true
// rewrite: (path) => path.replace(/^\/api/, ''),
}
}
}