|
|
@ -31,8 +31,8 @@ export default defineConfig(({mode, command}) => {
|
|
|
|
proxy: {
|
|
|
|
proxy: {
|
|
|
|
// https://cn.vitejs.dev/config/#server-proxy
|
|
|
|
// https://cn.vitejs.dev/config/#server-proxy
|
|
|
|
'/dev-api': {
|
|
|
|
'/dev-api': {
|
|
|
|
// target: 'http://10.11.41.249:8080',
|
|
|
|
target: 'http://10.11.41.249:8080',
|
|
|
|
target: 'http://localhost:8080',
|
|
|
|
// target: 'http://localhost:8080',
|
|
|
|
changeOrigin: true,
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
|
|
|
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
|
|
|
}
|
|
|
|
}
|
|
|
|