0👍
Try calling your API like this in your vuex actions:
export const actions = {
async nuxtServerInit({ commit }, { req }) {
const res = (await this.$axios.$get('https://api/news.json')).data
commit('SET_NEWS', res)
},
}
- [Vuejs]-Selected Tab highlighted until the user not clicked to the another tab in vuejs
- [Vuejs]-Prevent main router-view from changing
Source:stackexchange.com