mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
319 B
JavaScript
19 lines
319 B
JavaScript
5 months ago
|
import Vuex from 'vuex';
|
||
|
|
||
|
|
||
|
export default new Vuex.Store({
|
||
|
state: {
|
||
|
test: '',
|
||
|
},
|
||
|
mutations: {
|
||
|
UPDATE_TEST(state, payload) {
|
||
|
state.test = payload;
|
||
|
},
|
||
|
},
|
||
|
actions:{
|
||
|
updateTest(context,val){
|
||
|
context.commit('UPDATE_TEST',val);
|
||
|
},
|
||
|
}
|
||
|
});
|