Blame view

frontend/mobile/src/store/modules/i18n.js 401 Bytes
8d73e917   陈威   初始化提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const state = {
  langList: [],
}

const getters = {
  langList: function (state) {
    return state.langList
  },
}

const actions = {
  setLangList({ commit, state }, data) {
    commit('mutationLangList', data)
  },
}

const mutations = {
  mutationLangList(state, langList) {
    state.langList = langList
  },
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations,
}