| | |
| | | showPageList: { |
| | | type: Array, |
| | | }, |
| | | isSearch: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }; |
| | | }, |
| | | async mounted() { |
| | | const localData = localStorage.getItem("chapterEnightData"); |
| | | if (localData) { |
| | | this.chapterEnightData = JSON.parse(localData); |
| | | } |
| | | window.timerEnight = setInterval(() => { |
| | | this.saveTime--; |
| | | if (this.saveTime == 0) { |
| | | this.saveChapterOneData(); |
| | | if(!this.isSearch) { |
| | | const localData = localStorage.getItem("chapterEnightData"); |
| | | if (localData) { |
| | | this.chapterEnightData = JSON.parse(localData); |
| | | } |
| | | }, 1000); |
| | | this.getVideoPath(); |
| | | window.timerEnight = setInterval(() => { |
| | | this.saveTime--; |
| | | if (this.saveTime == 0) { |
| | | this.saveChapterOneData(); |
| | | } |
| | | }, 1000); |
| | | this.getVideoPath(); |
| | | } |
| | | }, |
| | | unmounted() { |
| | | if (window.timerEnight) { |