jhzh
2025-07-06 01a0faff3ea1a7e6705c13362a3968f2302093b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { mapState } from 'vuex'
 
const i18nMixin = {
  computed: {
    ...mapState({
      currentLang: state => state.app.lang
    })
  },
  methods: {
    setLang (lang) {
      this.$store.dispatch('setLang', lang)
    }
  }
}
 
export default i18nMixin