mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-09 15:52:40 +08:00
优化音量保存策略
This commit is contained in:
@@ -1462,7 +1462,8 @@ export default {
|
||||
|
||||
this.xg.on('volumechange', () => {
|
||||
this.config.volume = this.xg.volume.toFixed(2)
|
||||
setting.find().then(res => { res.volume = this.config.volume; setting.update(res) })
|
||||
const volume = this.config.volume
|
||||
setTimeout(() => { if (volume === this.config.volume) setting.find().then(res => { res.volume = this.config.volume; setting.update(res) }) }, 500)
|
||||
})
|
||||
|
||||
this.xg.on('timeupdate', () => {
|
||||
|
||||
Reference in New Issue
Block a user