Last active
December 20, 2017 12:48
-
-
Save smartITNinja/d2d510e00d7166a34d07c92c61b5e3ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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