ip:'http://192.162.1.41:8080'
http://ip:port/hahaha/xixixi
//代理配置
proxy: {
'/aaa': {
target: 'http://192.168.1.21:8080',
changeOrigin: true,
pathRewrite: { '^/aaa': '' }
}
}
//请求的时候
export async function Submission(params) {
console.log(params,"提交最终接口")
return request("/aaa/hahaha/xixixi", {
method:'POST',
data: {
...params,
},
// requestType:'form'
});
}
代理配置
最新推荐文章于 2024-06-02 11:40:05 发布