Skip to content

Instantly share code, notes, and snippets.

@smartITNinja
Last active December 20, 2017 12:48
Show Gist options
  • Save smartITNinja/d2d510e00d7166a34d07c92c61b5e3ff to your computer and use it in GitHub Desktop.
Save smartITNinja/d2d510e00d7166a34d07c92c61b5e3ff to your computer and use it in GitHub Desktop.
const store = new Vuex.Store({
state: {
isValid: 0,
mail: '',
password: '',
password2: '',
message: ''
},
mutations: {
valido(state) {
state.isValid = 1 ;
},
setUser(state, usuario) {
state.mail = usuario;
},
setPasswd(state, passwd) {
state.password = passwd;
},
setPasswd2(state, passwd) {
state.password2 = passwd;
},
setMsg(state, message) {
state.message = message;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment