1234567891011121314151617181920212223242526272829303132333435363738 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- state: {
- couponstate:true,
- shareID:'',
- },
- getters:{
- getcouponstate(state){
- return state.couponstate
- },
- getshareID(state){
- return state.shareID
- },
-
- },
- mutations: {
- mutationscouponstate(state,data){
- state.couponstate=data
- },
- mutationsshareID(state,data){
- state.shareID=data
- },
-
- },
- actions: {
- actionscouponstate(context,playload){
- context.commit('mutationscouponstate',playload)
- },
- actionsshareID(context,playload){
- context.commit('mutationsshareID',playload)
- },
-
- }
- })
- export default store
|