Skip to content

Commit

Permalink
Merge pull request #6742 from GuoLiBin6/automated-cherry-pick-of-#673…
Browse files Browse the repository at this point in the history
…8-upstream-release-3.9

Automated cherry pick of #6738: fix(v3.9): Operation logs display resource type from _i18n
  • Loading branch information
zexi committed Jun 19, 2024
2 parents dba91cc + 51edc30 commit 2e491e6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sections/EventList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,14 @@ export default {
title: this.$t('scope.text_653'),
field: 'obj_type',
hideField: true,
message: row => this.$te(`dictionary.${row.obj_type}`) ? this.$t(`dictionary.${row.obj_type}`) : row.obj_type,
slotCallback: row => this.$te(`dictionary.${row.obj_type}`) ? this.$t(`dictionary.${row.obj_type}`) : row.obj_type,
message: row => {
const { _i18n = {} } = row
return _i18n.obj_type || (this.$te(`dictionary.${row.obj_type}`) ? this.$t(`dictionary.${row.obj_type}`) : row.obj_type)
},
slotCallback: row => {
const { _i18n = {} } = row
return _i18n.obj_type || (this.$te(`dictionary.${row.obj_type}`) ? this.$t(`dictionary.${row.obj_type}`) : row.obj_type)
},
}),
{
title: this.$t('common.operation_type'),
Expand Down

0 comments on commit 2e491e6

Please sign in to comment.