We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这是我的一些代码
<aplayer v-if="isShow" :audio="audio" :lrcType="3" fixed mini ref="aplayer" /> data() { return { audio: [null], isShow: false, musicList: [null] }; }, async mounted() { await this.initSong(); }, methods: { async initSong() { findPlayList() .then(res => { this.musicList = res.data.playlist.trackIds.map( item => `https://music.163.com/song/media/outer/url?id=${item.id}.mp3` ); return res.data.playlist.trackIds; }) .then(res => { let ids = res.map(item => item.id); ids = ids.join(","); findSongDetail(ids).then(res => { this.audio = res.data.songs.map(item => { let songId = item.id; let name = item.name; let artist = item.ar[0].name; let cover = item.al.picUrl; return { name, artist, cover, lrc: "https://autumnfish.cn/lyric?id=" + songId }; }); }); this.isShow = true; }); } }
一些歌曲播放没有问题,但一些歌曲播放了就会一直报类似下面这样的错误,能连续报几千条。。。
Vue warn]: Duplicate keys detected: '249020'. This may cause an update error. found in ---> <Lyric> <APlayer> <App> at src/App.vue <Root>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这是我的一些代码
一些歌曲播放没有问题,但一些歌曲播放了就会一直报类似下面这样的错误,能连续报几千条。。。
The text was updated successfully, but these errors were encountered: