javascript - How can the hook in vue-router not be executed when refreshing the page?
習慣沉默
習慣沉默 2017-07-05 10:56:38
0
1
979

This hook is also executed when the page is refreshed. Is there any way to prevent it from being executed? Or is there any other hook that is not executed when the page is refreshed?

習慣沉默
習慣沉默

reply all(1)
过去多啦不再A梦

Judge the respective URL paths of from and to to know whether the page jumps from another router-link or is loaded from a new page.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template