解决方法
用 URLSearchParams 传递参数
let param = new URLSearchParams()
param.append(‘username‘, ‘admin‘)
param.append(‘pwd‘, ‘admin‘)
axios({
method: ‘post‘,
url: ‘/api/lockServer/search‘,
data: param
})
参考文章:https://blog.csdn.net/csdn_yudong/article/details/79668655
原文地址:https://www.cnblogs.com/samve/p/11618582.html
时间: 2024-09-27 22:05:50