用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