您的位置:首页 > Web前端 > Vue.js

vue中监视路由路径改变

2020-01-15 07:30 211 查看
vue的watch中:
watch:{
'$router.path':function(new,old){
console.log(new,old)
}
}
  • 点赞
  • 收藏
  • 分享
  • 文章举报
Zhencode 发布了46 篇原创文章 · 获赞 1 · 访问量 1007 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: