Verwenden Sie $ axios in vuex in nuxt
async nuxtServerInit ({ commit }, { $axios }) {
const ip = await $axios.$get('http://icanhazip.com')
commit('SET_IP', ip)
}
Anxious Anaconda