2025-06-06 15:31:45 +08:00

26 lines
456 B
JavaScript

import {
createStore
} from 'vuex'
export default createStore({
state: {
a: null
},
// getters: {
// changeData: function (state) {
// return state.a
// }
// },
mutations: {
changeData(state, value) {
state.a = value
}
},
actions: {
setData(content, payload) {
content.commit('changeData', payload)
}
},
modules: {
}
})