I configured prxyTable:
const proxyTable = {
"/ musichall": {
target: "https://c.y.qq.com",
changeOrigin: true,
pathRewrite: {}
},
"/ splcloud": {
target: "https://c.y.qq.com",
changeOrigin: true,
pathRewrite: {}
}
}
write the method on the page where you want to get the data:
requsetAllList () {
var api = "/splcloud/fcgi-bin/fcg_yqqhomepagerecommend.fcg"
this.$http.get(api).then(
response => {
console.log(response)
// this.allList = response.body.data.slider
},
error => {
console.log(error)
}
)
}
Why can"t you get this? the rookie just touched it and didn"t quite understand it. Thank you
for trying to get both vue-resorce and axios wrong