专家up
This commit is contained in:
@ -24,10 +24,12 @@ export default defineConfig(({ mode, command }) => {
|
||||
open: true,
|
||||
proxy: {
|
||||
// https://cn.vitejs.dev/config/#server-proxy
|
||||
'/dev-api': {
|
||||
target: 'http://localhost:8080',
|
||||
'/api': {
|
||||
// target: 'http://localhost:8080',
|
||||
target: 'http://192.168.0.149:8000',
|
||||
// target: 'http://zky.server.ipeace.org.cn',
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
||||
rewrite: (p) => p.replace(/^\/api/, '/api')
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user