# axios 用 post 请求方式报错的解决方案

# 1. 安装 qs

qs是一个不知道是谁开发的一个解决formData请求的包
安装方法:
yarn add qs
cnpm i qs -S

# 2. 使用

 this.$axios.post("/路径",qs.stringify({传递的参数})).then((res) => {
          console.log(res);
 });