关于vue监听路由跳转给被跳转的页面添加请求条件 闲者无敌 2023-01-11 37 阅读1分钟 watch: { $route: { handler: function (val, oldVal) { if(val){ this.getList()} }, // 深度观察监听 deep: true, }, },