diff --git a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx index a60a585..aef873e 100644 --- a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx +++ b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx @@ -129,7 +129,8 @@ const ResourceRepository = (props) => { const handleDelFile = (id) => { dispatch(delResourceFile(id)).then(res => { if (res.success) { - getFile(currentSelect); + getFile(currentSelect, { limit: 10, page: 0 }, { restSearch: true }); + } }) } @@ -177,6 +178,8 @@ const ResourceRepository = (props) => { const query = pagination ? { ...pagination, type: arr[0] } : { ...paginationQuery, type: arr[0] }; if (opt && opt.restSearch) { //选中树节点重置 + setKeyword(null); + setDataRange(null); } else { if (keyword) { query.keyword = keyword; } if (dataRange) {