Vue.js 2.0 transition on dynamic route not firing

后端 未结 2 1067
攒了一身酷
攒了一身酷 2021-01-06 05:55

I found that transition is not firing on dynamic route with parameters. For exemple with the code below, when I am in /chapter/1 and I go to /chapter/2

2条回答
  •  温柔的废话
    2021-01-06 06:20

    Came here with the same problem and @Mani's answer works fine. But I don't really like the idea of using two s.

    So I tried putting the key in instead. And it works! Working example: https://codepen.io/widyakumara/details/owVYrW/

    Not sure if this the proper vue-way of doing things, I'm kinda new using vue.

    PS. I'm using Vue 2.4.1 & Vue Router 2.7.0

提交回复
热议问题