Commit 5b3799c5 authored by 毛线's avatar 毛线

初始化音量bug

parent d6939211
...@@ -150,9 +150,10 @@ export default { ...@@ -150,9 +150,10 @@ export default {
const volumeMachine = localStorage.getItem('volumeMachine') const volumeMachine = localStorage.getItem('volumeMachine')
const volumeBg = localStorage.getItem('volumeBg') const volumeBg = localStorage.getItem('volumeBg')
const volumeButton = localStorage.getItem('volumeButton') const volumeButton = localStorage.getItem('volumeButton')
this.SetVolumeMachine(volumeMachine === 'null' ? 100 : volumeMachine) console.log('volumeMachine', volumeMachine)
this.SetVolumeBg(volumeBg === 'null' ? 100 : volumeBg) this.SetVolumeMachine((volumeMachine === 'null' || volumeMachine === null) ? 100 : volumeMachine)
this.SetVolumeButton(volumeButton === 'null' ? 100 : volumeButton) this.SetVolumeBg((volumeBg === 'null' || volumeBg === null) ? 100 : volumeBg)
this.SetVolumeButton((volumeButton === 'null' || volumeButton === null) ? 100 : volumeButton)
}, },
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment