Can I add something beforeDestroyto prevent component destruction?
Or is there a way to prevent component destruction?
My thing is that when I change the spa page to vue-route, I first use the browse route, but I found that this does not work because the component simply destroys.
source
share