mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
Fixed: Fix the issue where the common Drawer Title is displayed in English
This commit is contained in:
@@ -132,6 +132,7 @@ export default {
|
||||
methods: {
|
||||
getDefaultTitle() {
|
||||
let title = this.title
|
||||
let dispatchAction = ''
|
||||
if (!title && this.resource) {
|
||||
title = this.resource
|
||||
}
|
||||
@@ -143,11 +144,13 @@ export default {
|
||||
if (!title) {
|
||||
title = this.$t('NoTitle')
|
||||
}
|
||||
let action = this.action
|
||||
if (action === 'clone') {
|
||||
action = 'create'
|
||||
const action = this.action
|
||||
if (action === 'clone' || action === 'create') {
|
||||
dispatchAction = this.$t('Create')
|
||||
} else if (action === 'update') {
|
||||
dispatchAction = this.$t('Update')
|
||||
}
|
||||
title = toSentenceCase(action) + this.$t('WordSep') + toLowerCaseExcludeAbbr(title)
|
||||
title = dispatchAction + this.$t('WordSep') + toLowerCaseExcludeAbbr(title)
|
||||
return title
|
||||
},
|
||||
getDefaultDrawer(action) {
|
||||
|
||||
Reference in New Issue
Block a user