xzw 1 年之前
父節點
當前提交
f2fa4a6179
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/manage.js

+ 1 - 1
js/manage.js

@@ -1190,7 +1190,7 @@ Manage.prototype.switchBgmState = function(state){//按钮的状态完全代表
         SoundManager.pause('bgm')
     }
     
-    player.model.hotGroup.children.forEach(hot=>{
+    player?.model?.hotGroup?.children.forEach(hot=>{
         hot.updateMute()
     })