From 82ad0fa4283dc829032654015fad69cb17d621b6 Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 15 Aug 2023 16:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=83=9F=E8=8A=B1=E5=BC=B9?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Fireworks.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Fireworks.vue b/src/components/Fireworks.vue index 93b61f44..80d9efb9 100644 --- a/src/components/Fireworks.vue +++ b/src/components/Fireworks.vue @@ -193,13 +193,13 @@ onMounted(() => { let x = getRandom(0, fanwei) * Math.cos(a) + this.x; let y = getRandom(0, fanwei) * Math.sin(a) + this.y; let radius = getRandom(0, 2); - let frag = new Fire(this.x, this.y, radius, color, x, y); + let frag = new Firework(this.x, this.y, radius, color, x, y); this.booms.push(frag); } } } - class Fire { + class Firework { tx = 0; ty = 0; x = 0;