There is a page in the project that is reused for three pages. The content and click events of different pages are different. I want to determine what content is displayed by getting the name of the routed page, and add the corresponding click event.
过去多啦不再A梦2017-05-19 10:25:35
vue-router has a navigation hook from which is a routing object. Just get it from it