C
Size: a a a
C
V
C
V
C
export const actions = {
async nuxtServerInit({ commit, dispatch }, { req, $api }) {
try{
const data = await this.$api.getHeader() // axios
commit('SET_HEADER',data) // все ок
await dispatch('user/SET_DATA',data.userId) // ERROR [vuex] unknown action type: user/SET_DATA
}catch(e){
console.log(e)
}
}
}АН
АН
AK
V
AS
AK
AK
V
C
A
V
V
try {
…
} catch (e) {
…
throw e
}V