Skip to content

Commit

Permalink
Merge pull request #6738 from GuoLiBin6/fix/glb-to-3.9/src
Browse files Browse the repository at this point in the history
fix(v3.9): Operation logs display resource type from _i18n
  • Loading branch information
zexi authored Jun 19, 2024
2 parents c5bcfcd + c149199 commit 0344613
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 @@ -244,8 +244,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 0344613

Please sign in to comment.