How to refresh and reload individual components in vue

how vue refreshes the current component and subcomponents within a component.
for example, there is an input in the component that I typed. When I swipe the component, it is tantamount to re-entering the component and cannot destroy the vuex.
the $forceUpdate () that comes with vue seems to have no effect


reinitialize the mount after destruction


mark


use component exclusive routing events to try, beforeRouterEnter () and beforeRouterUpdate (), in detail on the vue.js official website. I tried to be effective.

Menu