vue-aplayer icon indicating copy to clipboard operation
vue-aplayer copied to clipboard

在mounted中 调用switch函数无法指定歌曲

Open walijoy opened this issue 6 years ago • 0 comments

通过URL参数传入一个歌曲名 当的WEB页面打开这个连接时 不能正确的加载到新的歌曲,只能加载上次的音频或第一首音频

    mounted: function () {
    if (this.$route.params.mp3Name !== this.$refs.aplayer.currentMusic.name) {
        this.$refs.aplayer.switch(this.$route.params.mp3Name)
        console.log(this.$route.params.mp3Name,this.$route.params.mp3Name) //这里打印两个音频名称不一样,确认调用过函数
      }
   }

walijoy avatar Jun 08 '19 06:06 walijoy