|
|
@@ -121,7 +121,7 @@ const Contracts: React.FC = () => {
|
|
|
mutationFn: async (id: string) => {
|
|
|
const response = await hetongClient[':id'].$delete({ param: { id: parseInt(id, 10) } });
|
|
|
if (!response.ok) throw new Error('Failed to delete contract');
|
|
|
- return response.json();
|
|
|
+ // return response.json();
|
|
|
},
|
|
|
onSuccess: () => {
|
|
|
message.success('合同记录删除成功');
|