diff --git a/nezha-fronted/src/components/common/rightBox/setting/globalizationBox.vue b/nezha-fronted/src/components/common/rightBox/setting/globalizationBox.vue index 8f0292dca..c9eb2f96d 100644 --- a/nezha-fronted/src/components/common/rightBox/setting/globalizationBox.vue +++ b/nezha-fronted/src/components/common/rightBox/setting/globalizationBox.vue @@ -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) } diff --git a/nezha-fronted/src/components/page/config/globalization.vue b/nezha-fronted/src/components/page/config/globalization.vue index 654535ef2..d8f37717b 100644 --- a/nezha-fronted/src/components/page/config/globalization.vue +++ b/nezha-fronted/src/components/page/config/globalization.vue @@ -65,7 +65,7 @@ export default { ids: '', name: '', code: '', - lang: 'English', + lang: 'en', value: '' }, searchMsg: { // 给搜索框子组件传递的信息