UNPKG
yinghe-lowcode-zln
Version:
latest (3.4.46)
3.4.46
3.4.45
基于vue、ant-design-vue,datagrid的低代码平台
yinghe-lowcode-zln
/
src
/
store
/
i18n-mixin.js
17 lines
(14 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
{ mapState }
from
'vuex'
const
i18nMixin = {
computed
: { ...
mapState
({
currentLang
:
state
=>
state.
app
.
lang
}) },
methods
: {
setLang
(lang) {
this
.
$store
.
dispatch
(
'setLang'
, lang) } } }
export
default
i18nMixin