From 5a411168d8c3ef5fe46c406c16d6e7db03364908 Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 15 Aug 2023 19:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Fireworks.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Fireworks.vue b/src/components/Fireworks.vue index 80d9efb9..492262a5 100644 --- a/src/components/Fireworks.vue +++ b/src/components/Fireworks.vue @@ -84,7 +84,7 @@ onMounted(() => { if (bigBooms.length === 0) { setTimeout(() => { isBreak = true - }, 1000) + }, 500) } } }); @@ -92,10 +92,7 @@ onMounted(() => { if (!isBreak) { raf(animate); } else { - // ctx.globalCompositeOperation = 'source-over' - // ctx.globalAlpha = 0; - // ctx.fillStyle = 'transparent'; - // ctx.fillRect(0, 0, canvas.width, canvas.height); + canvas.style.display = 'none' } }