From 463aab0d5338b33095478225c6226fbe9b43bd24 Mon Sep 17 00:00:00 2001 From: lengyibai <1329670984@qq.com> Date: Sun, 7 Jul 2024 23:31:53 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=9F=B3=E4=B9=90=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=99=A8=E9=BB=98=E8=AE=A4=E5=BC=80=E5=90=AF=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E4=B8=8D=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/modules/default.ts | 4 ++-- src/layout/components/Footbar/index.vue | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config/modules/default.ts b/src/config/modules/default.ts index bf085db38..963db42e4 100644 --- a/src/config/modules/default.ts +++ b/src/config/modules/default.ts @@ -241,13 +241,13 @@ export const configDefault: () => Global.SettingConfig = () => ({ tip: true, audio: true, audioVolume: 50, - music: false, + music: true, musicVolume: 50, barrage: !_isPhone, musicProgress: false, speed: 1, shine: true, - particle: false, + particle: true, language: 0, lotteryAnimation: true, noTips: { diff --git a/src/layout/components/Footbar/index.vue b/src/layout/components/Footbar/index.vue index cb8dbd55c..725ddd5a5 100644 --- a/src/layout/components/Footbar/index.vue +++ b/src/layout/components/Footbar/index.vue @@ -31,8 +31,6 @@ const music_progress = computed(() => $settingStore.config.musicProgress); nextTick(() => { $musicStore.initAudioVisual(canvasRef.value!); - if (!$settingStore.config.music) return; - $musicStore.play(); }); /** @description 通过获取点击的坐标,计算出播放进度 */