vue router-link点击事件无效解决方法

在router-link上使用@click无效是因为router-link的作用是单纯的路由跳转会影响阻止点击事件,使用@click.native就可以了

你可能感兴趣的:(vue)