Guest User

Untitled

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import Vue from 'vue';
  2. import Vuex from 'vuex';
  3.  
  4. Vue.use(Vuex);
  5.  
  6. const state = {
  7. themeColor: '#41B883'
  8. };
  9.  
  10. const mutations = {
  11. setThemeColor(state, color) {
  12. state.brandColor = color;
  13. }
  14. };
  15.  
  16. const getters = {
  17. themeColor: state => state.themeColor,
  18. };
  19.  
  20. export default new Vuex.Store({
  21. state,
  22. mutations,
  23. getters,
  24. });
Add Comment
Please, Sign In to add comment