Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Jul 12, 2023
1 parent e28efc1 commit 967df3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/able/wavesurfer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const curTime = ref();
// 音频是否正在播放
const isPlay = ref(false);
const { VITE_PUBLIC_PATH } = import.meta.env;
const url = `${VITE_PUBLIC_PATH}audio/海阔天空.mp3`;
function init() {
wavesurfer.value = WaveSurfer.create({
container: wavesurferRef.value,
Expand All @@ -32,7 +35,7 @@ function init() {
cursorColor: "rgb(64, 158, 255)",
cursorWidth: 4,
// backend: "MediaElement",
url: "/audio/海阔天空.mp3"
url
});
// 音频被解码后触发
Expand Down

0 comments on commit 967df3c

Please sign in to comment.