axios无法发送header

                axios.post(this.url + 'vdata_cate/getVdataCate', {
                    params: {
                        id: 3,
                        name: 'abc'
                    },
                    headers: {
                        'token': '123123213123'
                    }
                }).then((response) => {

                    console.log(response.data);

                    this.data1 = response.data.r;
                    this.totalnumber = response.data.totalnumber;
                });

image.png

阅读 291
评论
    4 个回答
    • 1
    • 新人请关照

    建议仔细查看axios官方文档