Files
cmdb/cmdb-ui/src/store/i18n-mixin.js
shaohaojiecoder 07814b85f9 add basic
2020-02-07 22:05:52 +08:00

17 lines
245 B
Python

import { mapState } from 'vuex'
const mixin = {
computed: {
...mapState({
currentLang: state => state.i18n.lang
})
},
methods: {
setLang (lang) {
this.$store.dispatch('SetLang', lang)
}
}
}
export { mixin }