VITE 配置项设置
# 前端设置代理
// vite.config.js
server: {
proxy: {
'/api': {
// 代理地址
target: 'http://192.168.106.187/LJGW/V100',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '')
}
}
}
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
上次更新: 2024/3/21 08:50:37