diff --git a/admin-web/src/pages/Admin/ResourceList.js b/admin-web/src/pages/Admin/ResourceList.js index 7557ecf9e..2f51d5f7a 100644 --- a/admin-web/src/pages/Admin/ResourceList.js +++ b/admin-web/src/pages/Admin/ResourceList.js @@ -99,7 +99,6 @@ class ResourceList extends PureComponent { modalVisible: false, modalType: 'add', //add update initValues: {}, - defaultExpandAllRows: false, }; componentDidMount() { @@ -110,12 +109,6 @@ class ResourceList extends PureComponent { }); } - changeExpandAll() { - this.setState({ - defaultExpandAllRows: !this.state.defaultExpandAllRows, - }); - } - handleModalVisible = (flag, modalType, initValues) => { this.setState({ modalVisible: !!flag, @@ -175,7 +168,7 @@ class ResourceList extends PureComponent { render() { const { list } = this.props; - const { modalVisible, modalType, initValues, defaultExpandAllRows } = this.state; + const { modalVisible, modalType, initValues } = this.state; const parentMethods = { handleAdd: this.handleAdd, handleModalVisible: this.handleModalVisible, @@ -250,18 +243,9 @@ class ResourceList extends PureComponent { > 新建 - - TODO 展开没效果,需要研究下 -