Vue keep-alive cannot cache

the scheduling page clicks the order to enter the order details. When you return to the scheduling page, you will request data rendering again. Now you want to return to the previous page without rendering.
cannot be cached using keep-alive, and activated and deactivated cannot call

normally.

clipboard.png

clipboard.png
enter print for the first time
exit deactivated cannot call
enter again will only print 1


your grammar is misused. It should be written like this

.
<!--  `<transition>`  -->
<transition>
  <keep-alive>
    <component :is="view"></component>
  </keep-alive>
</transition>

for more information, please see api

.
Menu