fix: 修复模板字符串中缺失admin前缀的i18n key

This commit is contained in:
2026-05-01 08:51:43 +08:00
parent f0bef45834
commit ad68c47ecb
4 changed files with 4 additions and 4 deletions
@@ -432,7 +432,7 @@ onMounted(() => {
</div>
<div class="flex justify-between text-sm">
<span class="text-muted-foreground">{{ t('admin.cloudVariables.create.type') }}</span>
<span>{{ t(`.cloudVariables.types.${form.var_type}`) }}</span>
<span>{{ t(`admin.cloudVariables.types.${form.var_type}`) }}</span>
</div>
<div v-if="form.var_type === 'stream'" class="flex justify-between text-sm">
<span class="text-muted-foreground">最大记录数</span>
@@ -269,7 +269,7 @@ export function getColumns(t: Composer['t']): ColumnDef<Log>[] {
cell: ({ row }) => {
const action = row.getValue('action') as string
if (!action) return '-'
const actionKey = `.logs.actions.${action}`
const actionKey = `admin.logs.actions.${action}`
const translated = t(actionKey)
return translated === actionKey ? action : translated
},
@@ -294,7 +294,7 @@ onMounted(() => {
</div>
<div class="flex justify-between text-sm">
<span class="text-muted-foreground">{{ t('admin.cloudConstants.create.type') }}</span>
<span>{{ t(`.cloudConstants.types.${form.var_type}`) }}</span>
<span>{{ t(`admin.cloudConstants.types.${form.var_type}`) }}</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-muted-foreground">{{ t('admin.cloudConstants.create.key') }}</span>
@@ -412,7 +412,7 @@ onMounted(() => {
</div>
<div class="flex justify-between text-sm">
<span class="text-muted-foreground">{{ t('admin.cloudVariables.create.type') }}</span>
<span>{{ t(`.cloudVariables.types.${form.var_type}`) }}</span>
<span>{{ t(`admin.cloudVariables.types.${form.var_type}`) }}</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-muted-foreground">{{ t('admin.cloudVariables.create.key') }}</span>