Browse Source

♻️ refactor(contracts): remove unused code comment

- 删除合同删除功能中未使用的response.json()注释行
- 清理代码结构,提高可读性
yourname 7 months ago
parent
commit
132bd9ece2
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/client/admin/pages/Contracts.tsx

+ 0 - 1
src/client/admin/pages/Contracts.tsx

@@ -121,7 +121,6 @@ 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();
     },
     onSuccess: () => {
       message.success('合同记录删除成功');