feat:【antd】【ele】统一 infra 和 system 的代码风格

This commit is contained in:
YunaiV
2025-09-23 09:42:06 +08:00
parent 5ddc25f4f2
commit 94c5c4c57e
7 changed files with 21 additions and 13 deletions

View File

@@ -44,6 +44,7 @@ function handleEdit(row: SystemMailAccountApi.MailAccount) {
async function handleDelete(row: SystemMailAccountApi.MailAccount) {
const hideLoading = message.loading({
content: $t('ui.actionMessage.deleting', [row.mail]),
duration: 0,
});
try {
await deleteMailAccount(row.id as number);

View File

@@ -185,7 +185,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{
label: '测试',
type: 'link',
icon: ACTION_ICON.ADD,
icon: ACTION_ICON.VIEW,
auth: ['system:sms-template:send-sms'],
onClick: handleSend.bind(null, row),
},

View File

@@ -47,7 +47,7 @@ async function handleDelete(row: SystemSocialClientApi.SocialClient) {
duration: 0,
});
try {
await deleteSocialClient(row.id as number);
await deleteSocialClient(row.id!);
message.success($t('ui.actionMessage.deleteSuccess', [row.name]));
handleRefresh();
} finally {