Browse Source

change export default mutations

pull/342/head
Guillaume Vincent 7 years ago
parent
commit
3e2f86eff0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/store/mutations.js

+ 2
- 2
src/store/mutations.js View File

@@ -5,7 +5,7 @@ function setState(state, id, object) {
set(state, id, Object.assign({}, object)); set(state, id, Object.assign({}, object));
} }


export const mutations = {
export default {
[types.LOGIN](state){ [types.LOGIN](state){
state.authenticated = true; state.authenticated = true;
}, },
@@ -18,4 +18,4 @@ export const mutations = {
[types.SET_DEFAULT_OPTIONS](state, {options}){ [types.SET_DEFAULT_OPTIONS](state, {options}){
setState(state, 'defaultOptions', options); setState(state, 'defaultOptions', options);
} }
};
};

Loading…
Cancel
Save