How do I create this Router behavior?

Greetings.

How can I navigate between pages by removing only the one I want from the doom and then destroy it manually.

For example: “/ hello / goodbye / good / greetings (Active)” I navigate to “/ hello / goodbye (Active) / good / greetings” and come back.

I have to simulate the navigation bar of this template: https://panjiachen.github.io/vue-element-admin/#/dashboard.

Thank you.