默认语言修改为中文
This commit is contained in:
parent
e06df98ce9
commit
6d7fa8f542
|
@ -29,7 +29,7 @@ const app = {
|
||||||
color: '',
|
color: '',
|
||||||
weak: false,
|
weak: false,
|
||||||
multiTab: true,
|
multiTab: true,
|
||||||
lang: 'en-US',
|
lang: 'zh-CN',
|
||||||
_antLocale: {}
|
_antLocale: {}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
@ -83,7 +83,7 @@ const app = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
setLang ({ commit }, lang) {
|
setLang({ commit }, lang) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
commit(APP_LANGUAGE, lang)
|
commit(APP_LANGUAGE, lang)
|
||||||
loadLanguageAsync(lang).then(() => {
|
loadLanguageAsync(lang).then(() => {
|
||||||
|
|
Loading…
Reference in New Issue