Created
April 8, 2022 06:45
-
-
Save AlexanderHentzsch/473c96f6141455aaa69b0cee7cadd6d3 to your computer and use it in GitHub Desktop.
Template für den vuex/nuxt $store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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