axios post parameters, put parameters with question marks

// 删除用户
export function delUserEntranceguard(carNo,pwd) {
  return request({
    url: '/xxx/xxx/deleteAEntra',
    method: 'post',
     params: {
      carNo: carNo,
      pwd: pwd,
    }
  })
}

If value is passed, no object is passed, and the original data is changed to params.

put parameter with question mark

// 删除设备信息
export function delDevice(cid) {
  return request({
    url: '/system/device/' + cid,
    method: 'delete'
  })
}

 

Guess you like

Origin blog.csdn.net/m0_61601708/article/details/130301468