Answers for "use $axios in vuex in nuxt"

0

use $axios in vuex in nuxt

async nuxtServerInit ({ commit }, { $axios }) {
  const ip = await $axios.$get('http://icanhazip.com')
  commit('SET_IP', ip)
}
Posted by: Guest on December-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language