fix: i18n调整
This commit is contained in:
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user