refactor: organize codes

This commit is contained in:
qier222 2020-11-23 16:04:45 +08:00
parent df799cbf84
commit bc0de620c1
23 changed files with 415 additions and 398 deletions

View file

@ -173,9 +173,9 @@ export default {
this.updatePlayerState({ key: "playing", value: true });
return true;
}
const status = this.howler.playing()
const status = this.howler.playing();
this.updatePlayerState({ key: "playing", value: status });
return status
return status;
},
progressMax() {
let max = ~~(this.currentTrack.dt / 1000);