Commit c2068aa9 authored by 陈帅's avatar 陈帅

fix #3035,w ill report an error when data is empty

parent 2f6288b5
...@@ -63,11 +63,8 @@ class StandardTable extends PureComponent { ...@@ -63,11 +63,8 @@ class StandardTable extends PureComponent {
render() { render() {
const { selectedRowKeys, needTotalList } = this.state; const { selectedRowKeys, needTotalList } = this.state;
const { const { data = {}, rowKey, ...rest } = this.props;
data: { list, pagination }, const { list = [], pagination } = data;
rowKey,
...rest
} = this.props;
const paginationProps = { const paginationProps = {
showSizeChanger: true, showSizeChanger: true,
......
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