Skip to content

Instantly share code, notes, and snippets.

@AlexanderHentzsch
Created April 22, 2021 13:50
Show Gist options
  • Save AlexanderHentzsch/5356f657362759d5304240446f982ee6 to your computer and use it in GitHub Desktop.
Save AlexanderHentzsch/5356f657362759d5304240446f982ee6 to your computer and use it in GitHub Desktop.
export const state = () => ({
$KEY: '$VALUE'
})
export const getters = {
get_$KEY(state) {
return state.$KEY;
},
};
export const mutations = {
set_$KEY(state, payload) {
state.$KEY = payload.$KEY;
}
}
export const actions = {
load_$KEY({commit}) {
commit('set_$KEY', {$KEY: '$VALUE'});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment