接口调整
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user