Vue 之 多个路由绑定同一组件造成created不执行的解决办法、created没有执行的问题

watch: {
    
    
    '$route' (to, from) {
    
    
      console.log(this.$route.params)
      // created to do sth.
    }
},

查看前端面试题

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42981560/article/details/111058586