Listen for routing changes

Why does routing from / user to / user/123 not trigger the getinfo function
watch: {
"$route": "getinfo"
}
methods: {
getinfo () {

   console.log("")

}
}

Dec.21,2021

try adding deep attribute

watch: {
    "$route": {
        handler: "getInfo",
        deep: true 
    }
},
methods: {
    getInfo () {
        console.log('')
    }
}
Menu