[Vuejs]-Keep alive for just one particular route

0👍

Try v-if on the keep-alive element.

0👍

You can use props to manage keep-alive:

include – Only components with matching names will be cached.

exclude – Any component with a matching name will not be cached.

more: https://v3.vuejs.org/api/built-in-components.html#keep-alive

Leave a comment