路由跳转
this.$router.push('/Student');
路由监听
watch:{
$route:{
handler:function (val,oldVal) {
if (val.path === '/Student') {
this.findAll();
}
},
deep:true
}
},
路由跳转
this.$router.push('/Student');
路由监听
watch:{
$route:{
handler:function (val,oldVal) {
if (val.path === '/Student') {
this.findAll();
}
},
deep:true
}
},