|
@@ -56,7 +56,7 @@ const playAudio = () => {
|
|
// 根据当前播放时间,实时更新进度条
|
|
// 根据当前播放时间,实时更新进度条
|
|
const updateProgress = (e) => {
|
|
const updateProgress = (e) => {
|
|
var value = e.target.currentTime / e.target.duration;
|
|
var value = e.target.currentTime / e.target.duration;
|
|
- if (audioRef.value.play) {
|
|
|
|
|
|
+ if (audioRef.value?.play) {
|
|
currentProgress.value = value * 100;
|
|
currentProgress.value = value * 100;
|
|
audioStart.value = transTime(audioRef.value.currentTime);
|
|
audioStart.value = transTime(audioRef.value.currentTime);
|
|
}
|
|
}
|