大宝管理后台代码
ne1
zzzz
2024-04-07 970caea465e645e4db6b761675f5b1afcf746a0e
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