Skip to content
New issue

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

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

Open
hookover opened this issue Jun 8, 2019 · 0 comments
Open

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

hookover opened this issue Jun 8, 2019 · 0 comments

Comments

@hookover
Copy link

hookover commented Jun 8, 2019

通过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) //这里打印两个音频名称不一样,确认调用过函数
      }
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant