Vue project, because the component has set keep – So the component will be cached, but the component is like a router in the figure – Link code function.
Current address localhost :8080/searchResult/dress
After clicking the button, the address changes to localhost :8080/searchResult/women
But although the address changed, but did not refresh the page, so the data did not change.
But I found that if I click refresh manually, the new data will change according to the address. So I want to ask how to force refresh the page when clicking. Equivalent to component refresh
Read more here: Source link