改后端端口

This commit is contained in:
2026-08-18 11:26:14 +08:00
parent 9b8b8b57b3
commit 7d8004a7ba
2 changed files with 759 additions and 2 deletions
+2 -2
View File
@@ -25,11 +25,11 @@ export default defineConfig({
strictPort: true,
proxy: {
'/api': {
target: 'http://127.0.0.1:8080',
target: process.env.BACKEND_URL || 'http://127.0.0.1:8021',
changeOrigin: true
},
'/uploads': {
target: 'http://127.0.0.1:8080',
target: process.env.BACKEND_URL || 'http://127.0.0.1:8021',
changeOrigin: true
}
}