feat: 更新产品状态切换功能,修改删除操作为启用/停用操作
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user