7f1b270e73a3230a7d8979307acf3193a7b390eb.svn-base 293 B

123456789101112131415161718192021
  1. import Vue from 'vue'
  2. import Vuex from 'vuex';
  3. Vue.use(Vuex)
  4. const state = {
  5. testMsg: 'light',
  6. }
  7. const mutations = {
  8. changeTestMsg(state, str){
  9. state.testMsg = str;
  10. },
  11. }
  12. const theme = new Vuex.Store({
  13. state: state,
  14. mutations: mutations
  15. })
  16. export default theme;