Skip to content

Commit

Permalink
perf: 音乐播放器默认开启,但不自动播放
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyibai committed Jul 7, 2024
1 parent f6519ef commit 463aab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/config/modules/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 0 additions & 2 deletions src/layout/components/Footbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const music_progress = computed(() => $settingStore.config.musicProgress);
nextTick(() => {
$musicStore.initAudioVisual(canvasRef.value!);
if (!$settingStore.config.music) return;
$musicStore.play();
});
/** @description 通过获取点击的坐标,计算出播放进度 */
Expand Down

0 comments on commit 463aab0

Please sign in to comment.