正确姿势,用&把参数连接起来就行了,不过这个要不要 url 编码下呢?没有仔细研究过
res = await http.post('https://aa.xxx.xyz.cn/index.php/?isAjax=true',"id=78&store=0&form_key=xniCOeOxjHEOaDYe&node=78", { headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
} })
错误姿势
res = await http.post('https://aa.xxx.xyz.cn/index.php/?isAjax=true',{
id: category.id,
store: 0,
form_key: FORM_KEY,
node: category.id,
}, { headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
} })