mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-30 03:02:49 +08:00
设置默认语言
This commit is contained in:
parent
2a67cb53b4
commit
1d1910d50b
@ -28,7 +28,7 @@ const messages = {
|
||||
const i18n = new VueI18n({
|
||||
// set locale
|
||||
// options: en | zh | es
|
||||
locale: Cookies.get('language') || 'en',
|
||||
locale: Cookies.get('language') || 'zh',
|
||||
// set locale messages
|
||||
messages
|
||||
})
|
||||
|
@ -6,7 +6,7 @@ const state = {
|
||||
withoutAnimation: false
|
||||
},
|
||||
device: 'desktop',
|
||||
language: Cookies.get('language') || 'en',
|
||||
language: Cookies.get('language') || 'zh',
|
||||
size: Cookies.get('size') || 'medium'
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user