fix: use zh-hans as the default lang

This commit is contained in:
Justineo 2022-05-05 15:52:28 +08:00
parent c64a77286e
commit fa9468a7d3
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,9 @@ module.exports = {
*/ */
head: { head: {
title: 'VEUI', title: 'VEUI',
htmlAttrs: {
lang: 'zh-Hans'
},
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' },

View File

@ -7,5 +7,5 @@ Vue.use(VueI18n)
export default ({ app, route }) => { export default ({ app, route }) => {
app.i18n = new VueI18n() app.i18n = new VueI18n()
i18nMgr.locale = getLocale(route.path) i18nMgr.locale = app.i18n.locale = getLocale(route.path)
} }