Browse Source

数据保护

dev
wenlele 2 years ago
parent
commit
7051655098
  1. 8
      web/client/src/sections/problem/components/tableData.jsx

8
web/client/src/sections/problem/components/tableData.jsx

@ -380,14 +380,14 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
> >
{(() => { {(() => {
console.log(tableData); console.log(tableData);
console.log(route == 'useAbnormal' || route == 'videoAbnormal' ? console.log((route == 'useAbnormal' || route == 'videoAbnormal') ?
tableData.slice(query.page * query.limit, (query.page + 1) * query.limit) || [] (tableData?.slice(query.page * query.limit, (query.page + 1) * query.limit) || [])
: tableData); : tableData);
return <Table return <Table
columns={exhibition} columns={exhibition}
dataSource={ dataSource={
route == 'useAbnormal' || route == 'videoAbnormal' ? (route == 'useAbnormal' || route == 'videoAbnormal') ?
tableData.slice(query.page * query.limit, (query.page + 1) * query.limit) || [] (tableData?.slice(query.page * query.limit, (query.page + 1) * query.limit) || [])
: tableData : tableData
} }
bordered={false} bordered={false}

Loading…
Cancel
Save