mirror of
https://github.com/veops/cmdb.git
synced 2025-08-09 06:37:40 +08:00
17 lines
245 B
Python
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 }
|