缓存“index”页面

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

需要在页面进行命名

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