我想用wavesurfer.js在Vue中显示一个wav文件,我的代码:
var wavesurfer = WaveSurfer.create({
container: '#waveform',
waveColor: 'red',
progressColor: 'purple'
});
wavesurfer.load('https://ia902606.us.archive.org/35/items/shortpoetry_047_librivox/song_cjrg_teasdale_64kb.mp3');
new Vue({
el: '#app',
data: {
message: 'data1'
},
})
但我得到错误:
Unknown custom element: <wave> - did you register the component correctly? For recursive components, make sure to provide the "name" option.