This commit is contained in:
2020-03-02 23:55:05 +00:00
parent b44ffdc49b
commit 6465f04d9e
5 changed files with 36 additions and 20 deletions

View File

@@ -10,6 +10,7 @@ Vue.use(Vuex);
export default new Vuex.Store({
plugins: [createPersistedState()],
state: {
lastClientVersion:"",
authenticated: false,
apiUrl: "",
helpUrl: "",
@@ -33,6 +34,9 @@ export default new Vuex.Store({
formCustomTemplate: {} //this is the custom fields settings for forms
},
mutations: {
setLastClientVersion(state, data) {
state.lastClientVersion = data;
},
login(state, data) {
// mutate state
state.authenticated = data.authenticated;