Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Vue from 'vue';
- import Vuex from 'vuex';
- Vue.use(Vuex);
- const state = {
- themeColor: '#41B883'
- };
- const mutations = {
- setThemeColor(state, color) {
- state.brandColor = color;
- }
- };
- const getters = {
- themeColor: state => state.themeColor,
- };
- export default new Vuex.Store({
- state,
- mutations,
- getters,
- });
Add Comment
Please, Sign In to add comment