Item 组件 Tab 详情页
路由配置
{
path: "/item/:id,
name: item
}
A 路由 /item/1
B 路由 /item/2
<KeepAlive :include="['Item']">
<component :is="view" :key="$route.fullPath"/>
</KeepAlive>
我可以根据 key 对 A 和 B 路由分别进行缓存,我关闭 B 详情页的时候可以使 A 详情页的缓存不被清理吗?
路由配置
{
path: "/item/:id,
name: item
}
A 路由 /item/1
B 路由 /item/2
<KeepAlive :include="['Item']">
<component :is="view" :key="$route.fullPath"/>
</KeepAlive>
我可以根据 key 对 A 和 B 路由分别进行缓存,我关闭 B 详情页的时候可以使 A 详情页的缓存不被清理吗?