The history added by history.pushstate, after many visits, it takes two clicks to go back to the previous page?

problem description

The

A page is a list page, click any of the items. An address is constructed through pushstate and the corresponding content is displayed. Now it"s time to enter item b and return to the A list page. After entering page c and then going back, a blank will be displayed, and then press back to return to page A.

where the popstate event is not triggered when a blank page is displayed.

Mar.30,2021
Menu