fix: 修复 prompt 后再 alert 出现的弹窗问题 (#2842)

This commit is contained in:
liaoxuezhi 2021-11-03 18:44:26 +08:00 committed by GitHub
parent 386c1de082
commit 236f979523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,9 @@ export class Alert extends React.Component<AlertProps, AlertState> {
this.setState(
{
show: false
show: false,
prompt: false,
confirm: false
},
isConfirm ? () => this._resolve(confirmed) /*this._reject()*/ : undefined
);