修复API地址配置:localhost改为192.168.3.200服务器IP

This commit is contained in:
Cold
2025-12-30 16:15:16 +08:00
parent 8d3423d882
commit 98121f090c
2 changed files with 3 additions and 4 deletions

View File

@@ -54,8 +54,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
// },
proxy: {
'/api': {
// target: 'http://192.168.3.200:8808',
target: 'http://localhost:8808',
target: 'http://192.168.3.200:8808',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},