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>
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>