devServer: {
historyApiFallback: true,
hot: false,
inline: true,
grogress: true,
host : '0.0.0.0',
proxy: {
'/msg/*': {
target: 'http://qa-wap-new.xebest.com/',
secure: false,
}
}
}
getData() {
$.ajax({
url: '/msg/v1_0/count.shtml',
type: 'get',
dataType: 'json',
success : function(data){
console.log(data);
}
})
}
我想在调用这个方法的时候代理到 http://qa-wap-new.xebest.com/...。。求大神指导怎么弄?
现在的情况 是