端口修正

This commit is contained in:
2025-12-11 16:26:48 +08:00
parent 5ee9770747
commit 99937e9feb
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ export default defineConfig({
cors: true, cors: true,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8080', target: 'http://localhost:8180',
changeOrigin: true, changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/api/, '') rewrite: (path: string) => path.replace(/^\/api/, '')
}, },

View File

@@ -52,7 +52,7 @@ export default defineConfig({
cors: true, cors: true,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8080', target: 'http://localhost:8180',
changeOrigin: true, changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/api/, '') rewrite: (path: string) => path.replace(/^\/api/, '')
} }

View File

@@ -36,7 +36,7 @@ export default defineConfig({
cors: true, cors: true,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8080', target: 'http://localhost:8180',
changeOrigin: true, changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/api/, '') rewrite: (path: string) => path.replace(/^\/api/, '')
}, },