使用axios 发送post请求 将参数放在url后面
如何将pk值放url后面(只有值,不带pk)
export function test(id, page, per_page) {
return request({
url: `/project/web/classificationdetail/${id}`,
method: "post",
data: {
page,
per_page,
},
});
}
return request({
url: `接口地址/`+params,
method: 'post',
})
你这是get请求吧 。post是不显示在url里的