接口调整

This commit is contained in:
dzl
2025-09-24 16:01:45 +08:00
parent 65bba361a1
commit 90a8397350
3 changed files with 141 additions and 122 deletions

View File

@@ -17,15 +17,20 @@ export default defineConfig({
host:'0.0.0.0',
proxy: {
'/api': {
target: 'http://localhost:3000',
target: 'http://192.168.0.11:3000',
changeOrigin: true
},
'/mid': {
target: 'http://192.168.0.12:3005',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/mid/, '')
},
// '/admin': {
// target: 'http://localhost:3000',
// target: 'http://192.168.208.158:3000',
// changeOrigin: true
// },
'/uploads': {
target: 'http://localhost:3000',
target: 'http://192.168.0.11:3000',
changeOrigin: true
}
}