get请求头如何手动添加token测试

image.png
按照图示写没有起作用

阅读 3.1k
1 个回答

headers是键值对的对象,你的写法错了

headers: {
    'token': 'token值内容',
    'Content-Type': '...'
}
推荐问题