修复modal 在没有孩子渲染器处理 ajax 时,弹窗没办法设置关闭的问题

This commit is contained in:
liaoxuezhi 2019-11-20 10:34:50 +08:00
parent b80aef17da
commit d9495a734d
2 changed files with 2 additions and 0 deletions

View File

@ -669,6 +669,7 @@ export class DialogRenderer extends Dialog {
action.redirect &&
env.jumpTo(filter(action.redirect, store.data), action);
action.reload && this.reloadTarget(action.reload, store.data);
action.close && this.handleSelfClose();
})
.catch(() => {});
} else if (onAction) {

View File

@ -666,6 +666,7 @@ export class DrawerRenderer extends Drawer {
action.redirect &&
env.jumpTo(filter(action.redirect, store.data), action);
action.reload && this.reloadTarget(action.reload, store.data);
action.close && this.handleSelfClose();
})
.catch(() => {});
} else if (onAction) {