📜  观看 $route - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:44.054000             🧑  作者: Mango

代码示例1
watch: { 
     '$route.params.search': {
        handler: function(search) {
           console.log(search)
        },
        deep: true,
        immediate: true
      }
}