fix(frontend): 修复本地开发代理指向 Java 后端端口 8080

This commit is contained in:
tonytech 2026-03-03 14:19:25 +08:00
parent e9dff31242
commit 995e18d399

View File

@ -46,12 +46,11 @@ export default defineConfig({
host: true,
proxy: {
'/api': {
target: 'http://localhost:3000',
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},
'/uploads': {
target: 'http://localhost:3000',
target: 'http://localhost:8080',
changeOrigin: true,
},
},