摘要: 必须是在当前页面的路由有子路由时,才能监控到,不然无效 beforeRouteUpdate (to, from, next) { console.log(to) console.log(from) next() } watch: { $route (to, from) { console.log(t 阅读全文
posted @ 2020-08-21 14:45 zhaobao1830 阅读(369) 评论(1) 推荐(0) 编辑