From 1b73d655aa1fd464e9070b8fef22fe27a4c270dc Mon Sep 17 00:00:00 2001 From: yison Date: Wed, 20 Mar 2019 20:40:39 +0800 Subject: [PATCH] fix --- src/components/modal/confirm.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/modal/confirm.js b/src/components/modal/confirm.js index dbb525bb..1918ddb7 100644 --- a/src/components/modal/confirm.js +++ b/src/components/modal/confirm.js @@ -166,8 +166,11 @@ Modal.newInstance = properties => { if (this.loading) { this.buttonLoading = true; } else { - this.$children[0].visible = false; - this.remove(); + if (this.autoClose) { + this.$children[0].visible = false; + this.remove(); + } + } this.onOk(); },