feat: 更新产品状态切换功能,修改删除操作为启用/停用操作

This commit is contained in:
2026-01-20 02:37:11 +07:00
parent 4a5b8c3ab8
commit 6484309732
3 changed files with 10 additions and 8 deletions

View File

@@ -119,7 +119,9 @@ const columns: TableBaseColumns = [
positiveText: '确认',
negativeText: '取消',
onPositiveClick: async () => {
await safeClient(() => client.api.admin.subscription.products({ productId: row.id as string }).delete());
await safeClient(() =>
client.api.admin.subscription.products({ productId: row.id as string }).switchActive.post()
);
message.success('操作成功');
tableInst.value?.reload();
}