这个是因为用到了new URLSearchParams()
let param = new URLSearchParams()
param.append('username', username)
this.$axios({
method: "post",
url: APIURL+"/login",
data: param
}).then(response => {})
安装url-search-params-polyfill
npm install url-search-params-polyfill --save
在需要的页面中引入即可
import 'url-search-params-polyfill';