use 24axios in vuex in nuxt

Solutions on MaxInterview for use 24axios in vuex in nuxt by the best coders in the world

showing results for - "use 24axios in vuex in nuxt"
Alice
12 Jul 2018
1async nuxtServerInit ({ commit }, { $axios }) {
2  const ip = await $axios.$get('http://icanhazip.com')
3  commit('SET_IP', ip)
4}
5