Nuxt uses keep-alive page caching

Cache the "index" page

<template>
  <!-- 缓存特定的组件 -->
  <nuxt keep-alive :keep-alive-props="{ include: ['index']}" />
</template>

Need to be named on the page

<script>
  export default {
    
    
    name: "index"
  }
</script>

Guess you like

Origin blog.csdn.net/AK852369/article/details/112860856