axios get 파라미터로 3개가 들어가 지지 않는 문제(url, params, config)

bunny.log·2022년 11월 22일
0

Use Axios.Get with params and config together

해결

let f = 0

let config = {
  headers: {'Authorization': 'JWT ' + this.$store.state.token},
  params: {
    page: f + 1
  },
}

axios.get('http://localhost:8000/api/v1/f/', config)

출처
https://stackoverflow.com/questions/48261227/use-axios-get-with-params-and-config-together

profile
나를 위한 경험기록

0개의 댓글