diff --git a/doc/toast/HeadlessDoc.vue b/doc/toast/HeadlessDoc.vue index 602776f53..31efc7c9d 100644 --- a/doc/toast/HeadlessDoc.vue +++ b/doc/toast/HeadlessDoc.vue @@ -115,7 +115,7 @@ export default { if (this.progress >= 100) { this.progress = 100; - clearInterval(interval); + clearInterval(this.interval); } }, 1000); } @@ -214,7 +214,7 @@ const show = () => { if (this.progress >= 100) { this.progress = 100; - clearInterval(interval); + clearInterval(this.interval); } }, 1000); }