mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2026-07-29 18:16:41 +08:00
fix: bgm加载时机调整
This commit is contained in:
+7
-4
@@ -186,11 +186,14 @@ const App: FC = () => {
|
||||
|
||||
// 主题切换
|
||||
useEffect(() => {
|
||||
setBgmOn(false);
|
||||
// 初始化时不加载bgm
|
||||
if (once) {
|
||||
setBgmOn(false);
|
||||
setTimeout(() => {
|
||||
setBgmOn(true);
|
||||
}, 300);
|
||||
}
|
||||
restart();
|
||||
setTimeout(() => {
|
||||
setBgmOn(true);
|
||||
}, 300);
|
||||
}, [curTheme]);
|
||||
|
||||
// 队列区排序
|
||||
|
||||
Reference in New Issue
Block a user