diff --git a/app/renderer/src/main/src/pages/payloadManager/newPayloadTable.tsx b/app/renderer/src/main/src/pages/payloadManager/newPayloadTable.tsx index 6b5556aa76..0a4e113a3a 100644 --- a/app/renderer/src/main/src/pages/payloadManager/newPayloadTable.tsx +++ b/app/renderer/src/main/src/pages/payloadManager/newPayloadTable.tsx @@ -591,18 +591,24 @@ export const NewPayloadTable: React.FC = (props) => { setSelectObj({Id: record.Id, dataIndex: column.dataIndex}) } else if (callCountRef.current >= 2) { console.log("Double click:", record, column) - handleRowDoubleClick(record, column) + setEditingObj({Id: record.Id, dataIndex: column.dataIndex}) } callCountRef.current = 0 // 重置计数器 } const handleRowClick = (record, column) => { + if(record.Id===editingObj?.Id&&column.dataIndex===editingObj?.dataIndex){ + return + } + if(record.Id!==editingObj?.Id||column.dataIndex!==editingObj?.dataIndex){ + setEditingObj(undefined) + setSelectObj(undefined) + } callCountRef.current += 1 setTimeout(() => handleMethod(record, column), 200) } const handleRowDoubleClick = (record, column) => { - setSelectObj(undefined) - setEditingObj({Id: record.Id, dataIndex: column.dataIndex}) + } const handleRowRightClick = (record, column) => {