Merge pull request #494 from RickCole21/master
修复crud数据未初始化时,dialog无法弹出问题
This commit is contained in:
commit
b0b623d1ef
|
@ -317,7 +317,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
|||
if (action.actionType === 'dialog') {
|
||||
store.setCurrentAction(action);
|
||||
const idx: number = (ctx as any).index;
|
||||
const length = store.data.items.length;
|
||||
const length = store.items.length;
|
||||
stopAutoRefreshWhenModalIsOpen && clearTimeout(this.timer);
|
||||
store.openDialog(ctx, {
|
||||
hasNext: idx < length - 1,
|
||||
|
|
Loading…
Reference in New Issue