fix: 解决编辑同步问题

This commit is contained in:
2024-10-12 02:34:47 +08:00
parent 9a23521524
commit 929aaebf20
5 changed files with 70 additions and 32 deletions

View File

@@ -31,12 +31,12 @@ export default defineConfig({
host: '0.0.0.0',
proxy: {
'/api': {
target: 'http://localhost:4000',
target: 'http://localhost:4002',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},
'/api/router': {
target: 'ws://localhost:4000',
target: 'ws://localhost:4002',
changeOrigin: true,
ws: true,
rewriteWsOrigin: true,