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

音乐添加失败 #2

Open
boasad opened this issue May 24, 2022 · 2 comments
Open

音乐添加失败 #2

boasad opened this issue May 24, 2022 · 2 comments

Comments

@boasad
Copy link

boasad commented May 24, 2022

包括官网的演示添加音乐也添加不上去

在Vue2.x中 使用add功能,在created钩子函数中正常添加音乐
但在methos方法中无法使用,连add函数都进不去
到提问日期截止 官网演示的添加音乐功能也无法使用
希望修复!!
蛮看好的!!

@boasad
Copy link
Author

boasad commented May 24, 2022

另外希望作者能出一个Vue版本的!!

@Dreamer-Paul
Copy link
Owner

Dreamer-Paul commented May 25, 2022

能提供一个完整一些的代码示例么?我在 React 下是可以使用的(把 KPlayer 这个函数给 export 之后)

我在 React 使用它的时候,用了 useRef 钩子使得播放器自身方法暴露在父组件上,就可以调用播放器的方法操作了

演示站的问题,我看是文案写错了,应该放上一个链接,而不是 id 的,后期我改改

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

2 participants