vue向后端传参会加个等号
作者:互联网
解决方法是 加上headers
axios({ method: "POST", url: this.serverUrl + "Article/findById", data: this.articleId, headers: { "Content-Type": "text/plain" }, }).then((res) => { this.article = res.data; console.log(res.data); });
标签:vue,加个,res,serverUrl,Content,headers,text,data,参会 来源: https://www.cnblogs.com/cjxy1993/p/15695199.html