this.$axios different than store.$axios

smith64fx
100
smith64fx
commented 3 years ago

Hello,
I just found out that this.$axios has a baseUrl whereas store.$axios has no baseUrl!

Is this a bug?

How to reproduce…

Just make this in some component:

    console.log(this.$axios.defaults.baseURL)
    console.log(this.$store.$axios.defaults.baseURL)

the first one is undefined, the second one is http://localhost:3000 (in my case)

bug
0
pi0
39.6k
pi0
commented 3 years ago

Thanks @smith64fx for report :) Next release would be available soon.

0
Informations
Bug ReportOpen
#c31 - Created 3 years ago