An animation component drawn with canvas in vue. When routing jumps (every page has this canvas component), the image drawn by canvas is not displayed.

an animated component drawn with canvas in

vue, when routing jumps (every page has this canvas component)
canvas

written in mounted
Mar.10,2021
Is the

problem solved


problem solved?


when a route is redirected, components are initialized, and data from different components is not shared. If you want to share this image, you can use vuex

.
Menu