I refer to a component on multiple pages, and when I switch pages, the status of the component is still flashed on the previous page.

I refer to a component on multiple pages, and the status of the component is still flashed on the previous page when switching pages

an svg animated line component is used by multiple pages. When you switch to another page, the state of the svg animation is still that of the previous page. There will be a flash and there will be a good situation. How to solve this problem?

clipboard.png

May.22,2021

need to add a little bit of code

Menu