From d15b78f2bd7ff79145a7dcf8464c074d9cafda18 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Wed, 20 Nov 2019 10:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmodal=20=E5=9C=A8=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=AD=A9=E5=AD=90=E6=B8=B2=E6=9F=93=E5=99=A8=E5=A4=84?= =?UTF-8?q?=E7=90=86=20ajax=20=E6=97=B6,=E5=BC=B9=E7=AA=97=E6=B2=A1?= =?UTF-8?q?=E5=8A=9E=E6=B3=95=E8=AE=BE=E7=BD=AE=E5=85=B3=E9=97=AD=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Dialog.tsx | 1 + src/renderers/Drawer.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/renderers/Dialog.tsx b/src/renderers/Dialog.tsx index e37bae05..38fecdec 100644 --- a/src/renderers/Dialog.tsx +++ b/src/renderers/Dialog.tsx @@ -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) { diff --git a/src/renderers/Drawer.tsx b/src/renderers/Drawer.tsx index 0bcfba42..3710e5d7 100644 --- a/src/renderers/Drawer.tsx +++ b/src/renderers/Drawer.tsx @@ -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) {