📜  vue中使用watch方法监控路由更新 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:53.204000             🧑  作者: Mango

代码示例3
watch: {
  movie(movie) {
    // Fetch data about the movie
    fetch(`/${movie}`).then((data) => {
      this.movieData = data;
    });
  }
}