React模拟实现Vue的keepAlive功能
目录 前言 react-activation简介 react-activation安装 兼容性 注意!!! 项目里代码实现 入口文件main.tsx 路由文件 router.tsx App.tsx文件 总结 前言 在React中,默认情况下组件在被卸载后...
vue3中使用keepAlive缓存路由组件不生效的问题解决
问题出现原因 在router.js中注册路由: { path: '/template-allocation', name: 'TemplateAllocation', meta: { title: '风险任务详情', keepAlive: true }, component: () => import( '../v...