diff --git a/apps/web-antd/src/views/mp/material/modules/video-table.vue b/apps/web-antd/src/views/mp/material/modules/video-table.vue index bdcd60415..adc1e6f78 100644 --- a/apps/web-antd/src/views/mp/material/modules/video-table.vue +++ b/apps/web-antd/src/views/mp/material/modules/video-table.vue @@ -10,6 +10,7 @@ import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; import { WxVideoPlayer } from '#/views/mp/components'; import { useVideoGridColumns } from './data'; +import {$t} from '@vben/locales'; const props = defineProps<{ list: MpMaterialApi.Material[]; @@ -81,7 +82,7 @@ watch( onClick: () => openWindow(row.url), }, { - label: '删除', + label: $t('common.delete'), type: 'link', danger: true, icon: ACTION_ICON.DELETE, diff --git a/apps/web-antd/src/views/mp/material/modules/voice-table.vue b/apps/web-antd/src/views/mp/material/modules/voice-table.vue index 21305e107..27ebe0bd3 100644 --- a/apps/web-antd/src/views/mp/material/modules/voice-table.vue +++ b/apps/web-antd/src/views/mp/material/modules/voice-table.vue @@ -4,6 +4,7 @@ import type { MpMaterialApi } from '#/api/mp/material'; import { watch } from 'vue'; +import { $t } from '@vben/locales'; import { openWindow } from '@vben/utils'; import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; @@ -81,7 +82,7 @@ watch( onClick: () => openWindow(row.url), }, { - label: '删除', + label: $t('common.delete'), type: 'link', danger: true, icon: ACTION_ICON.DELETE, diff --git a/apps/web-antd/src/views/mp/message/index.vue b/apps/web-antd/src/views/mp/message/index.vue index 7c0a82ed8..2a1024854 100644 --- a/apps/web-antd/src/views/mp/message/index.vue +++ b/apps/web-antd/src/views/mp/message/index.vue @@ -102,6 +102,7 @@ function handlePageChange(page: number, pageSize: number) { function showTotal(total: number) { return `共 ${total} 条`; } +// TODO @dylan:是不是应该都用 Grid 哈:1)message-table 大部分合并到 index.vue;2)message-table 的 schema 放到 data.ts 里;