after the scaffolding installed by vue+webpack, you want to request data for an address, but it is not successful. The operation is as follows:
modify the config/index.js file:
proxyTable: {
"v1":{
target:" https://www.easy-mock.com/mock/5b61584fd0774b3c9ec5034c/example1",
changeOrigin:true,
pathRewrite:{
"^/aa":"/aa"
}
}
},
and then quote it in action.js,
export default{
GET_IN_THEATERS:({dispatch,state,commit}) => {
axios({url: "/aa"}).then(res => {
console.log(res);
})
}
}
but the requested address is still http://localhost:8080/aa
. How can I set up the correct address to be requested?