SevenOutman / vue-aplayer

:cake: Easy-to-use music player for Vue 2.x
https://vue-aplayer.js.org
MIT License
1.33k stars 201 forks source link

bind the data after a ajax call #1

Closed c625473164 closed 7 years ago

c625473164 commented 7 years ago

is there any way to send music list data to the :music prop after an ajax call

ccmyli commented 7 years ago

老表 能来个中文文档吗

SevenOutman commented 7 years ago

@c625473164 APlayer doesn't have song list mutation apis yet, so vue-aplayer is not able to modify the song list after construction as well. You may try construct vue-aplayer component after the ajax call.

SevenOutman commented 7 years ago

@ecitlm APlayer doesn't provide an api to mutate the music list after it's been created.

c625473164 commented 7 years ago

I have solved my problem by using v-if to render the component after an ajax.

ecitlm commented 7 years ago

@c625473164 能否提供一下代码片段呢,provide the code can you ?