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(route == 'useAbnormal' || route == 'videoAbnormal' ?
tableData.slice(query.page * query.limit, (query.page + 1) * query.limit) || []
console.log((route == 'useAbnormal' || route == 'videoAbnormal') ?
(tableData?.slice(query.page * query.limit, (query.page + 1) * query.limit) || [])
: tableData);
return <Table
columns={exhibition}
dataSource={
route == 'useAbnormal' || route == 'videoAbnormal' ?
tableData.slice(query.page * query.limit, (query.page + 1) * query.limit) || []
(route == 'useAbnormal' || route == 'videoAbnormal') ?
(tableData?.slice(query.page * query.limit, (query.page + 1) * query.limit) || [])
: tableData
}
bordered={false}

Loading…
Cancel
Save