feat: updates

This commit is contained in:
qier222 2022-04-04 17:51:07 +08:00
parent 9971418b8c
commit bbcf1f9340
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
19 changed files with 306 additions and 15 deletions

View file

@ -244,7 +244,10 @@ export class Player {
const prefetchNextTrack = async () => {
const prefetchTrackID = this.fmTrackList[1]
const track = await this._fetchTrack(prefetchTrackID)
if (track?.al.picUrl) axios.get(resizeImage(track.al.picUrl, 'md'))
if (track?.al.picUrl) {
axios.get(resizeImage(track.al.picUrl, 'md'))
axios.get(resizeImage(track.al.picUrl, 'xs'))
}
}
if (this.fmTrackList.length === 0) await loadMoreTracks()