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

  

posted @ 2021-12-15 21:24  盐排骨  阅读(102)  评论(0编辑  收藏  举报