diff --git a/src/components/CapitalModal/CapitalModal.tsx b/src/components/CapitalModal/CapitalModal.tsx index 4ba76e4..face13b 100644 --- a/src/components/CapitalModal/CapitalModal.tsx +++ b/src/components/CapitalModal/CapitalModal.tsx @@ -173,7 +173,7 @@ export default function CapitalModal() { dataIndex: 'index', width: 70, // 设置宽度 key: 'index', - render: (text, record, index) => (page - 1) * 10 + index + 1, + render: (_text, _record, index) => (page - 1) * 10 + index + 1, }, { title:
类型
, diff --git a/src/components/RecordModal/RecordModal.tsx b/src/components/RecordModal/RecordModal.tsx index 79cf93b..cbc7942 100644 --- a/src/components/RecordModal/RecordModal.tsx +++ b/src/components/RecordModal/RecordModal.tsx @@ -151,7 +151,7 @@ export default function RecordModal() { dataIndex: 'index', width: 70, // 设置宽度 key: 'index', - render: (text, record, index) => (page - 1) * 10 + index + 1, + render: (_text, _record, index) => (page - 1) * 10 + index + 1, }, { title:
金额
, diff --git a/src/components/myOrder/MyOrder.tsx b/src/components/myOrder/MyOrder.tsx index 15a4fb3..04b9aa0 100644 --- a/src/components/myOrder/MyOrder.tsx +++ b/src/components/myOrder/MyOrder.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Table, TableProps, Tooltip, Spin } from "antd"; import { useEffect, useState } from "react"; import useMessage from "antd/es/message/useMessage";