|
@@ -184,7 +184,7 @@ export default defineComponent({
|
|
|
data.timer = setTimeout(() => {
|
|
|
audioRef.value.currentTime = val;
|
|
|
data.timer = null;
|
|
|
- }, 60);
|
|
|
+ }, 300);
|
|
|
};
|
|
|
|
|
|
/** 播放结束 */
|
|
@@ -495,7 +495,7 @@ export default defineComponent({
|
|
|
onInit(audioRef.value, canvasRef.value);
|
|
|
}
|
|
|
// 开始拖动时也不能更新
|
|
|
- if (data.dragStatus) return;
|
|
|
+ if (data.timer) return;
|
|
|
data.currentTime = audioRef.value?.currentTime;
|
|
|
}}
|
|
|
onError={() => {
|
|
@@ -539,7 +539,7 @@ export default defineComponent({
|
|
|
<Slider
|
|
|
step={0.01}
|
|
|
class={styles.timeProgress}
|
|
|
- v-model={data.currentTime}
|
|
|
+ modelValue={data.currentTime}
|
|
|
max={data.duration}
|
|
|
onUpdate:modelValue={val => {
|
|
|
handleChangeTime(val);
|