优化 CRUD 一次性加载重新刷新路基

This commit is contained in:
2betop 2020-07-09 18:09:17 +08:00
parent 7ab16f083d
commit 08ae3cb4ad

View File

@ -866,7 +866,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
})
.then(() => {
reload && this.reloadTarget(reload, data);
this.search();
this.search(undefined, undefined, true, true);
})
.catch(() => {});
} else {
@ -886,7 +886,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
.saveRemote(quickSaveItemApi, sendData)
.then(() => {
reload && this.reloadTarget(reload, data);
this.search();
this.search(undefined, undefined, true, true);
})
.catch(() => {});
}
@ -995,7 +995,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
.saveRemote(saveOrderApi, model)
.then(() => {
reload && this.reloadTarget(reload, model);
this.search();
this.search(undefined, undefined, true, true);
})
.catch(() => {});
}