|
@@ -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); |
|
|
} |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
}; |