ask a question from vue. I now have a scenario where multiple sidebar navigation routes point to the same page (note that sidebar navigation will be explained later). All that has changed is the data in the List
list. The route now says "die". How to die? For example, the navigation paths / path1
and / path2
point to both someComponent
components. So now I just want to use the dynamic path /: somePath
to point to the same component, and then write logic in this someCompoent
component to match this.$route.params
.
but one of the problems I encounter now is: after the successful login of the page, I first traverse my routing configuration object, and then generate a sidebar to navigate and render to the page, which leads me to write a dynamic path. Traversing the rendering sidebar navigation will cause a problem. How to solve it?