When element UI messagebox presses enter, perform a certain operation. How to remove this?

for example, how to make the pop-up box of messagebox not perform a definite action when the keyboard presses enter? thank you


try its beforeClose event, where you listen for keyboard enter events without closing the pop-up box

clipboard.png


declare this
document.onkeydown = function (event) {
return false
}

in your mounted.
Menu