vue中判断路由变化

使用from.path和to.path判断路由跳转

在methods里面写函数:

当然,上边函数里边可以做很多事情。

 

posted @ 2019-01-16 15:00  叶庚的博客  阅读(5832)  评论(0编辑  收藏  举报