做路由监听变化即可: watch : { '$route' (to, from) { // from 对象中要 router 来源信息. // do your want } } https://router.vuejs.org/zh-c... 。
可以在beforeRouterEnter中判断啊.