A
A
Alexander2020-05-18 17:47:05
Vue.js
Alexander, 2020-05-18 17:47:05

How to get data on axios request in Vue.js?

Hello, when I try to get data, I get the following error: 5ec29f01d5b7c754316029.png

I send a request like this:

const results = this.$http.get('oauth.login', { params: user })
        console.log(results.data)


I checked if the request was being sent and to my surprise everything was buzzing: 5ec29fa151a34253249823.png

Why is this happening?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-05-18
@AndrewRusinas

const results = await this.$http.get('oauth.login', { params: user })
        console.log(results.data)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question