闫增涛
2024-06-07 7944d624d5adf492a4a5ead068b2a88c707e2388
src/books/childHealth/view/content/components/chapter005.vue
@@ -2841,22 +2841,7 @@
    if (localData) {
      this.chapterFiveData = JSON.parse(localData);
    }
    window.timerFive = setInterval(() => {
      this.saveTime--;
      if (this.saveTime == 0) {
        this.saveChapterOneData();
      }
    }, 1000);
    this.getVideoPath();
  },
  unmounted() {
    if (window.timerFive) {
      clearInterval(window.timerFive);
    }
    localStorage.setItem(
      "chapterFiveData",
      JSON.stringify(this.chapterFiveData)
    );
  },
  methods: {
    changeResources(type) {
@@ -2873,7 +2858,6 @@
      }
    },
    saveChapterOneData() {
      this.saveTime = 20;
      localStorage.setItem(
        "chapterFiveData",
        JSON.stringify(this.chapterFiveData)