What should I do if the click event of vue-router 's rounter-link is prevented from bubbling by other components?

as shown in the figure below, because more code omits the path of other router-link,to, not just the root path , the router-view here does not jump when I click on router-link. This footer is the bottom suspension bar of position:fixed

modify the problem

after many tests, I found that a component in the page added mousedown and touchstart to prevent bubbling events in order to achieve the page turning effect, so in fact, the click events in the page were captured and prevented from bubbling. The component is placed in a div container that is high and full of browsers, while the top and bottom navigation bars are both fixed on the page.

so how do you ensure that the footer can get the event and the paging component still prevents bubbling in this case?

The < H2 > page is shown in the figure < / H2 >

the card flip component below is a must, so how to prevent the click event at the bottom of the navigation bar from bubbling by him?


finds the problem, and the touchstart event is captured and prevented by other components from bubbling events. Just modify the event capture


you are writing the root path, that is, your current page, how can you jump?


is the route registered?


{
      path: "aaaa",
      name: "xxx",
      component: resolve =>
        require(["@/aaaxxx.vue"], resolve)
    }
<router-link :to="{name:'xxx'}"></router-link>

try this


I was thinking, did you really click on it? Is it possible that the navigation button is not clicked because of css coverage and other reasons. Review the element to see if the navigation button is overridden by something. no, no, no.

Menu