28.activated、deactivated

1.必须使用keep-alive才有效果(App.vue中添加)。

  <keep-alive>
          <router-view></router-view>    
    </keep-alive>

2.activated活跃状态下。

3.deactivated不活跃状态下。

posted @ 2021-07-02 20:02  ajaXJson  阅读(83)  评论(0编辑  收藏  举报