前端页面缓存是通过Keep-Alive实现的
Keep-Alive
假设当前访问页面路由的name是saicms/news/article,那么在index.vue页面需要显示定义名称,和页面路由的name相同
saicms/news/article
index.vue
<script> export default { name: 'saicms/news/article' } </script>
定义好之后,切换tag的时候,页面就不会刷新了
← 跨域配置