fix:优化整个大屏界面

This commit is contained in:
Daniel
2026-03-01 22:26:14 +08:00
parent c07fc681dd
commit 24d0593e12
8 changed files with 728 additions and 106 deletions

View File

@@ -6,8 +6,20 @@ export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': { target: 'http://localhost:3001', changeOrigin: true },
'/ws': { target: 'ws://localhost:3001', ws: true },
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
configure: (proxy) => {
proxy.on('error', () => {}) // 后端未启动时静默失败
},
},
'/ws': {
target: 'ws://localhost:3001',
ws: true,
configure: (proxy) => {
proxy.on('error', () => {}) // 后端未启动时静默失败
},
},
},
},
resolve: {