书写位置 script部分中 这里的路由是指在router的module中指定的 如下例子都是类似的 例如: 若地址为 http://localhost:8080/#/print/print 则 监控路由带来的数据,并采用某一方法使用该参数执行方法 一般写法 // 监听部分 watch:{ // 实现跳转回页面数据刷新 $route: function (newVal) { if (newVal.path == '/print/print') { this.getList() } } }