keepAlive

配置两个地方:

1:

      
          
      
      

2:

{
        path: '/orderList',
        name: 'orderList',
        component: OrderList,
        title: '订单列表',
        meta: {
            keepAlive: true // 缓存
        }
    },
备注:
:key=date,用于:刷新当前路由 router-view中的内容,但是这样感觉会跟keepAlive冲突

你可能感兴趣的:(keepAlive)