view2
devServer:{
proxy: {
"/api": {
target: "http://shiyansong.cn:8888/api/private/v1/",
changeOrigin: true, //表示是否跨域,
pathRewrite: {
"^/api": "/", },
},
}
}
view 3
server:{
proxy: {
"/api": {
target: "http://shiyansong.cn:8888/api/private/v1/",
changeOrigin: true, //表示是否跨域,
pathRewrite: {
"^/api": "/", },
},
}
}