Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 20 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Vue from 'vue' |
||
2 | import Vuex from 'vuex' |
||
3 | |||
4 | Vue.use(Vuex); |
||
5 | |||
6 | export const store = new Vuex.Store({ |
||
7 | state: { |
||
8 | locale: null |
||
9 | }, |
||
10 | mutations:{ |
||
11 | setLocale(state, locale){ |
||
12 | state.locale = locale |
||
13 | } |
||
14 | }, |
||
15 | getters: { |
||
16 | locale: state => { |
||
17 | return state.locale |
||
18 | } |
||
19 | } |
||
20 | }); |
||
21 | |||
22 |