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);
});

浙公网安备 33010602011771号