fix:优化整个大屏界面
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user