diff --git a/src/components/Play.vue b/src/components/Play.vue index 5f5d9fe..d2fc0d3 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -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', () => {