vue – CLI project, open keep – After alive, how to refresh the component page while changing its routing

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