The keep-alive component is to realize that the page A from page B does not refresh, and other pages are refreshed when they enter page A
First, add an isBack field to the routing meta information meta of A to solve the problem that beforeRouterEnter cannot directly access the vue instance.