liushengqiang 2 年之前
父節點
當前提交
dbb4c04036
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 1
      src/view/audio-list/index.tsx
  2. 1 0
      src/view/evaluating/index.tsx

+ 2 - 1
src/view/audio-list/index.tsx

@@ -69,11 +69,12 @@ export const setAudioCurrentTime = (time: number, index = 0) => {
 export const toggleMutePlayAudio = (source: IPlayState, volume: number) => {
 	if (source === "music") {
 		if (audioData.songEle) {
+			console.log(volume)
 			audioData.songEle.volume = volume;
 		}
 	} else if (source === "background") {
 		if (audioData.backgroundEle) {
-			audioData.songEle.volume = volume;
+			audioData.backgroundEle.volume = volume;
 		}
 	}
 };

+ 1 - 0
src/view/evaluating/index.tsx

@@ -363,6 +363,7 @@ export default defineComponent({
 			if (!state.setting.enableAccompaniment){
 				toggleMutePlayAudio('music', 0)
 				toggleMutePlayAudio('background', 0)
+				
 			}
 		};
 		/** 还原状态 */