mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
修复modal 在没有孩子渲染器处理 ajax 时,弹窗没办法设置关闭的问题
This commit is contained in:
parent
b80aef17da
commit
d9495a734d
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user