export const actions = {
async fetch({state, dispatch, commit}) {
try {
if (state.settings != null) {
return
}
const data = await this.$axios.$get('settings')
commit('setSettings', data)
} catch (e) {
console.log(e)
throw e
}
},
}