1. 首页
  2. 数据库
  3. 其它
  4. vue router keep alive helper:Vue.js缓存自动管理插件自动创建、销毁缓存页面 源码

vue router keep alive helper:Vue.js缓存自动管理插件自动创建、销毁缓存页面 源码

上传者: 2021-05-09 04:48:47上传 ZIP文件 85.06KB 热度 41次
Vue路由器保持活动帮助器 Vue Router Keep-alive Helper是用于管理Vue.js项目中的缓存页面的自动工具,只能使用一行配置代码。 English | 为什么需要此帮手: 当使用vue-router开发Vue.js的SPA项目时, 总是用于缓存已路由的页面,有三个选项来管理其中的缓存树, include - Only components with matching names will be cached. exclude - Any component with a matching name will not be cached. max - The maximum number of component instances to cache. 但是这些选项仅在简单情况下有用,否则它们是无用的,例如: 路由返回时销毁当前页面
下载地址
用户评论