|
@@ -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;
|
|
|
}
|
|
|
}
|
|
|
};
|