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?
Judge the respective URL paths of
from
andto
to know whether the page jumps from another router-link or is loaded from a new page.