vue浏览器返回上一页,导航栏显示对应的高亮

watch: {
   $route (to, from) {

   //进行判断 

    }  
}, 

  

原文地址:https://www.cnblogs.com/zxli/p/14143893.html