This commit is contained in:
@fawn-nine
2024-07-03 16:25:22 +08:00
parent 1c20c59fda
commit 4ab1335a94
3 changed files with 22 additions and 15 deletions

View File

@@ -131,8 +131,10 @@
var that = this;
if (this.currentTime) {
that.setVideoTime();
console.log('我是onload定义的定时');
}
}, 60000);
},
methods: {
@@ -182,10 +184,11 @@
}
this.options = data.currentVideo;
console.log("this.options at line 64:", this.options);
this.videoId = this.options.video;
this.videoId = this.options.video;
this.timer = setInterval(async () => {
var that = this;
if (this.currentTime) {
console.log('我是init定义的定时');
await that.setVideoTime();
}
}, 60000);