Explorar el Código

♻️ refactor(contracts): remove unused code comment

- 删除合同删除功能中未使用的response.json()注释行
- 清理代码结构,提高可读性
yourname hace 7 meses
padre
commit
132bd9ece2
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  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('合同记录删除成功');