feat:【antd】【ele】统一 infra 和 system 的代码风格
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user