vue开发:axios的post请求接口出现404,但是get则成功

xiaoxiao2021-02-28  9

methods:{ myclick(){ this.$http({ methods:"post", url:"../../../static/my.json", headers:{"Content-Type":'application/x-www-form-urlencoded; charset=UTF-8'} }).then((res)=>{ console.log(JSON.stringify(res.data).length); if(JSON.stringify(res.data).length>0){ this.myshow=false; }else{ this.myshow=true; } }) } }
转载请注明原文地址: https://www.6miu.com/read-1650171.html

最新回复(0)