| 123456789101112131415161718192021 |
- import Vue from 'vue'
- import Vuex from 'vuex';
- Vue.use(Vuex)
- const state = {
- testMsg: 'light',
- }
- const mutations = {
- changeTestMsg(state, str){
- state.testMsg = str;
- },
- }
- const theme = new Vuex.Store({
- state: state,
- mutations: mutations
- })
- export default theme;
|