liushengqiang пре 1 година
родитељ
комит
06698c0100
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/views/xiaoku-music/component/play-item/index.tsx

+ 3 - 0
src/views/xiaoku-music/component/play-item/index.tsx

@@ -173,6 +173,9 @@ export default defineComponent({
               ref={audioRef}
               src={props.item.audioFileUrl || props.item.metronomeUrl}
               onLoadedmetadata={onLoadedmetadata}
+              onEnded={() => {
+                emit('change', 'pause')
+              }}
               onTimeupdate={() => {
                 if (timer) return;
                 audioData.currentTime = audioRef.value.currentTime;