search

Home  >  Q&A  >  body text

javascript - Vue sub-route switching has a flickering problem.

Several sub-routes are set up, that is, the top navigation will switch routes

But when several sub-routes are switched back and forth, there will be flickering.

I found that when switching a route, it will be displayed. The current route displayed will definitely be squeezed out. Then disappear. So there will be flickering.

How to avoid flickering and poor experience.

给我你的怀抱给我你的怀抱2775 days ago628

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-05-19 10:44:51

    Have you added transition.
    Have you added mode='out-in'?

    reply
    0
  • Cancelreply