How does the vue project force refresh components and pages

Sometimes some data cannot be stored in data in advance. Even if we modify the data, the display on the page is still not updated. At this time, we need to force a refresh of the page. Only one sentence is needed:

 this.$forceUpdate();

Guess you like

Origin blog.csdn.net/qq_42931285/article/details/130449219