Created
April 22, 2021 13:50
-
-
Save AlexanderHentzsch/5356f657362759d5304240446f982ee6 to your computer and use it in GitHub Desktop.
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 = () => ({ | |
$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