[Vuejs]-Using Axios within nuxtServerInit()

0👍

export const actions = {
  async nuxtServerInit({ commit, state }, {app} ) {
    const { contactData } = await app.$axios.get("/contact");
    commit("SET_CONTACT", contactData);
  }
};

Leave a comment