diff --git a/src/components/live-video/index1.vue b/src/components/live-video/index1.vue index 57907f8..70ca10f 100644 --- a/src/components/live-video/index1.vue +++ b/src/components/live-video/index1.vue @@ -47,7 +47,7 @@ export default { }, //根据剩余秒数重新执行init reinit() { - if (!this.expires) return + if (!this.expires || this.expires <= 0) return setTimeout(() => { this.init() }, this.expires * 1000)