如何实现特定页面路由跳转缓存的业务场景?-灵析社区

一一在debug

用keep-alive: router.beforeEach((to, from, next) => { if (from.path === '/father/B' && to.name === 'A') { to.meta.KeepAlive = true; } else { to.meta.KeepAlive = false; } next(); });

阅读量:1

点赞量:0

问AI