#话不多说,直接上代码
handleCloseMsgBoxEnter() {
setTimeout(() => {
document.activeElement && document.activeElement.blur();
}, 10);
}
然后在你需要的地方调用
如果是confirm弹窗,处理方式
beforeClose: (action, instance, done) => {
this.handleCloseMsgBoxEnter();
done();
}