From fdac165a90d301e6c6b2648d14176a1410131901 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 01 十二月 2021 18:32:16 +0800 Subject: [PATCH] 2021-12-01 --- src/menu/components/form/formaction/index.jsx | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/menu/components/form/formaction/index.jsx b/src/menu/components/form/formaction/index.jsx index 86b5ce0..b3a1f9e 100644 --- a/src/menu/components/form/formaction/index.jsx +++ b/src/menu/components/form/formaction/index.jsx @@ -251,7 +251,15 @@ maskClosable={false} okText={dict['model.submit']} onOk={this.verifySubmit} - onCancel={() => { this.setState({ profVisible: false }) }} + onCancel={() => { + if (this.verifyRef.handleCancel) { + this.verifyRef.handleCancel().then(() => { + this.setState({ profVisible: false }) + }) + } else { + this.setState({ profVisible: false }) + } + }} destroyOnClose > <VerifyCard -- Gitblit v1.8.0