【发布时间】:2018-06-23 23:31:06
【问题描述】:
如何将axios.get 与参数和配置一起使用?我的代码不起作用。请帮我解决这个基本问题!
let config = {
'headers': {'Authorization': 'JWT ' + this.$store.state.token}
}
let f = 0
axios.get('http://localhost:8000/api/v1/f/', {
params: {
page: f + 1
},
config: this.config
})
【问题讨论】:
标签: javascript axios