diff --git a/src/lang/index.js b/src/lang/index.js index 7c9c8af6..93dadcaf 100644 --- a/src/lang/index.js +++ b/src/lang/index.js @@ -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 }) diff --git a/src/store/modules/app.js b/src/store/modules/app.js index 84875dd6..84bedd3b 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -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' }