code is as follows:
methods: {
datailData(singerId){
var url = "/api/v8/fcg-bin/fcg_v8_singer_track_cp.fcg";
const commonParams = {
g_tk: 1928093487,
inCharset: "utf-8",
outCharset: "utf-8",
notice: 0,
format: "jsonp"
};
const data = Object.assign({}, commonParams, {
hostUin:0,
needNewCode:0,
platform:"yqq",
order:"listen",
begin:0,
num:80,
songstatus:1,
singermid:singerId
})
return Axios.get(url,{
headers:{
referer:"https://c.y.qq.com",
host:"c.y.qq.com"
},
params:data
}).then(response=>{
console.log(response);
})
}
}
console.log comes out like this:
qq
the route has changed, but the data is not available. Axios did not get the data.
Please take a look at it. Thank you very much