style: i18n新增默认lang en高亮

This commit is contained in:
@changcode
2021-11-03 13:53:46 +08:00
parent 7ecf2b9ecd
commit d40988674f
2 changed files with 4 additions and 1 deletions

View File

@@ -144,6 +144,9 @@ export default {
this.$get('/sys/dict/all', { type: 'lang' }).then(response => {
if (response.code === 200) {
this.languageList = response.data
if (!this.editGlobalization.id) {
this.languageList[0].value = 'en'
}
} else {
this.$message.error(response.msg)
}

View File

@@ -65,7 +65,7 @@ export default {
ids: '',
name: '',
code: '',
lang: 'English',
lang: 'en',
value: ''
},
searchMsg: { // 给搜索框子组件传递的信息