设置默认语言

This commit is contained in:
jiyongshuai 2020-06-09 03:21:29 +08:00
parent 2a67cb53b4
commit 1d1910d50b
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const messages = {
const i18n = new VueI18n({ const i18n = new VueI18n({
// set locale // set locale
// options: en | zh | es // options: en | zh | es
locale: Cookies.get('language') || 'en', locale: Cookies.get('language') || 'zh',
// set locale messages // set locale messages
messages messages
}) })

View File

@ -6,7 +6,7 @@ const state = {
withoutAnimation: false withoutAnimation: false
}, },
device: 'desktop', device: 'desktop',
language: Cookies.get('language') || 'en', language: Cookies.get('language') || 'zh',
size: Cookies.get('size') || 'medium' size: Cookies.get('size') || 'medium'
} }