1,libs --axios里面修改
headers: {
'Content-Type':'application/json',
}
2,修改 homey.js
把params 改成data
gettopdata: (data) => {
return axios.request({
url: topgeturl,
params: data,
method:'get'
})
},
gettable: (data) => {
return axios.request({
url: gettableurl,
data: (data),
method:'post'
})
},
网友评论