When you want to click [OK], the effect is as follows:
1:
The actual effect is indeed: after the warning content is displayed, the confirmation box disappears
As follows, when onOk is called, adding an e will solve the problem, and the effect will be like 1: