feat:【ele】mp/tag 的代码迁移

This commit is contained in:
YunaiV
2025-10-25 15:01:31 +08:00
parent fde9ddf468
commit a3890a120f
10 changed files with 369 additions and 19 deletions

View File

@@ -45,7 +45,7 @@ async function handleDelete(row: MpAccountApi.Account) {
duration: 0,
});
try {
await deleteAccount(row.id as number);
await deleteAccount(row.id!);
message.success($t('ui.actionMessage.deleteSuccess', [row.name]));
handleRefresh();
} finally {
@@ -60,7 +60,7 @@ async function handleGenerateQrCode(row: MpAccountApi.Account) {
duration: 0,
});
try {
await generateAccountQrCode(row.id as number);
await generateAccountQrCode(row.id!);
message.success($t('ui.actionMessage.operationSuccess'));
handleRefresh();
} finally {
@@ -75,7 +75,7 @@ async function handleCleanQuota(row: MpAccountApi.Account) {
duration: 0,
});
try {
await clearAccountQuota(row.id as number);
await clearAccountQuota(row.id!);
message.success($t('ui.actionMessage.operationSuccess'));
} finally {
hideLoading();