Commit 500d1da7 by fanyj

对比key值修改

parent 0840d503
...@@ -58,7 +58,9 @@ const VersionCompareTable = (props) => { ...@@ -58,7 +58,9 @@ const VersionCompareTable = (props) => {
const tableData = React.useMemo(() => { const tableData = React.useMemo(() => {
const newTableData = []; const newTableData = [];
let columnValue = (direction==='left') ? data?.left?.columnValue : data?.right?.columnValue; let columnValue = (direction==='left') ? data?.leftValue?.columnValue : data?.rightValue?.columnValue;
console.log(columnValue)
for (const item of columnValue??[]) { for (const item of columnValue??[]) {
let newItem = {}; let newItem = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment