// 使用 watch 监听路由变化,手动更新数据
  watch: {
    '$route': function(to, from) {
      this.getList()
    }
  },

Logo

快速构建 Web 应用程序

更多推荐