Browse Source

(fixed)7520 删除后列表数据显示错误

master
周沫沫历险记 2 years ago
parent
commit
a806d18224
  1. 5
      web/client/src/sections/humanAffairs/containers/resourceRepository.jsx

5
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) {

Loading…
Cancel
Save