Vue 路由条状,钩子函数 created 不执行的解决办法

watch: {
    $route(to, from) {
      this.getInfo()
    }
  }
原文地址:https://www.cnblogs.com/winyh/p/13100560.html