当前位置:网站首页>Keepalive component cache does not take effect

Keepalive component cache does not take effect

2022-07-06 00:36:00 CSDN Q & A

The configuration in the route is enabled keepalive Component cache

img

The effect of component caching is not achieved in the actual browsing effect , There is no error after checking the component

After entering the details page from the table row and returning to the table view, it will be sent again http request

Seeking solutions




Take the answer :

This is only the routing meta information declared by yourself , You can access , Such as :$route.meta.keepAlive, You can't use the cache just by stating here
You should have this more keepAlive Configuration combination keep-alive Components use


原网站

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202071119506166.html