Vue axios acquires data. Status is 200. No error is reported, but no data can be obtained.

The

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:

clipboard.png
qq

clipboard.png
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

.
Apr.16,2021

whether code 400message failed~ in the data attribute value needs to be judged according to this item


the status returned by your server is 200. it should be said upstairs to judge that the code in data


is a problem with id transmission. Use js to obtain the content behind the last slash of url as id to obtain data

.
Menu