12345678910111213141516171819202122232425262728 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- state: {
- yuyueData:'',
- },
- getters:{
- getyuyueData(state){
- return state.yuyueData
- },
-
- },
- mutations: {
- mutationsyuyueData(state,data){
- state.yuyueData=data
- },
-
- },
- actions: {
- actionsyuyueData(context,playload){
- context.commit('mutationsyuyueData',playload)
- },
-
- }
- })
- export default store
|