1、切换缓存所有
<keep-alive>
<router-view></router-view>
</keep-alive>
2、只缓存某给路由
<keep-alive include="dade">
<router-view></router-view>
</keep-alive>
3、缓存多给路由
<keep-alive :include="['dade1','dade2']">
<router-view></router-view>
</keep-alive>
我这里使用缓存所有