fix: i18n调整

This commit is contained in:
@changcode
2021-11-03 15:36:54 +08:00
parent 14dc417a8a
commit 1cac99f208
2 changed files with 13 additions and 3 deletions

View File

@@ -144,9 +144,6 @@ 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[1].value = 'en'
}
} else {
this.$message.error(response.msg)
}
@@ -163,6 +160,9 @@ export default {
handler (n, o) {
this.isEdit = true
this.editGlobalization = JSON.parse(JSON.stringify(n))
if (!this.editGlobalization.id) {
this.languageList[1].value = 'en'
}
}
}
}

View File

@@ -0,0 +1,10 @@
diff a/nezha-fronted/src/components/common/rightBox/setting/globalizationBox.vue b/nezha-fronted/src/components/common/rightBox/setting/globalizationBox.vue (rejected hunks)
@@ -145,7 +145,7 @@
if (response.code === 200) {
this.languageList = response.data
if (!this.editGlobalization.id) {
- this.languageList[0].value = 'en'
+ this.languageList[1].value = 'en'
}
} else {
this.$message.error(response.msg)