Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Dec 6, 2024
1 parent d59fc67 commit 7a27755
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/dialog/content/setting/ServerConfigPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ const { t } = useI18n()
const translateItem = (item: ServerConfig<any>): FormItemType => {
return {
...item,
name: t(`serverConfigItems.${item.id}`, item.name),
tooltip: t(`serverConfigItems.${item.id}.tooltip`, item.tooltip)
name: t(`serverConfigItems.${item.id}.name`, item.name),
tooltip: item.tooltip
? t(`serverConfigItems.${item.id}.tooltip`, item.tooltip)
: undefined
}
}
</script>

0 comments on commit 7a27755

Please sign in to comment.