-
Navigation is triggered;
-
Call beforeRouterLeave in the deactivated component;
-
Call the global pre-beforeEacth guard;
-
Call beforeRouterUpdate in the reused component;
-
Call the beforeEnter guard in the routing configuration;
-
Parse asynchronous routing components;
-
Call the beforeRouterEnter guard in the activated component;
-
Call the global resolution beforeResolve guard;
-
Confirm navigation;
-
Call the global afterEach hook;
-
make the DOM update;
-
Call the callback function passed to next by beforeRouterLeave, and pass in the created component instance as a parameter of the callback function;
Vue Router navigation guard---navigation analysis process
Guess you like
Origin blog.csdn.net/weixin_48352984/article/details/126631949
Recommended
Ranking