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.
vue-router has a navigation hook from which is a routing object. Just get it from it