The main cache is in ajax json
The content of my route is loaded once, I put the contents of the route into memory, the next time re-entering this route, do not need to reload the page to get data directly from memory.
Switch to a different city, different cities data call
But home is to display different data in different cities, so switch to a different city keep-alive without re-rendering data. After using the keep-alive, there will be a new life cycle function activated.
Activated it can be determined whether there is change data, and reload the data.