Skip to content

Instantly share code, notes, and snippets.

@AlexanderHentzsch
Created April 8, 2022 06:45
Show Gist options
  • Save AlexanderHentzsch/473c96f6141455aaa69b0cee7cadd6d3 to your computer and use it in GitHub Desktop.
Save AlexanderHentzsch/473c96f6141455aaa69b0cee7cadd6d3 to your computer and use it in GitHub Desktop.
Template für den vuex/nuxt $store
export const state = () => ({
__default: '',
});
export const getters = {
_default(state) {
return state;
},
_withParams: (state) => (param) => {
},
};
export const mutations = {
_default(state, payload) {
},
};
export const actions = {
async _root(ctx, payload) {
await ctx.commit('__NAME__', payload, {root: true});
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment