Use Antd's modal confirmation box, click [OK], when calling the onOk method, check whether there is an error, if there is an error, the problem of the current page will be hidden

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:

Guess you like

Origin blog.csdn.net/u013282737/article/details/102661582