feat: add page layout i18n language config.

增加页面布局的国际化语言配置
This commit is contained in:
iczer
2020-06-23 22:05:29 +08:00
parent 2382dd8abc
commit 2e90b7c614
9 changed files with 71 additions and 30 deletions

View File

@@ -4,7 +4,8 @@ export default {
state: {
isMobile: false,
animates: require('@/config/animates'),
...config
...config,
routesI18n: {}
},
mutations: {
setDevice (state, isMobile) {
@@ -36,6 +37,9 @@ export default {
},
setLang(state, lang) {
state.lang = lang
},
setRoutesI18n(state, i18n) {
state.routesI18n = i18n
}
}
}