IPPSWAP-h5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
398 B

import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
// 中英化
language: uni.getStorageSync("language") || 'zh_TW',
},
mutations: {
// 设置中英文
setLanguage: (state, language) => {
const obj = state
obj.language = language
uni.setStorageSync("language", language)
},
},
actions: {
}
})
export default store