|
@@ -37,12 +37,19 @@ export default defineComponent({
|
|
|
}
|
|
|
// 暂停播放
|
|
|
if (resInfo?.api === "api_paused") {
|
|
|
- console.log('暂停播放')
|
|
|
+ const currentTime = resInfo?.content?.currentTime
|
|
|
+ console.log('暂停播放',currentTime)
|
|
|
state.playState = 'paused';
|
|
|
+ if (currentTime === 0) {
|
|
|
+ // 坐标和小节都改为初始值
|
|
|
+ state.activeNoteIndex = 0
|
|
|
+ state.activeMeasureIndex = state.times[0].MeasureNumberXML;
|
|
|
+ handlePlaying(true);
|
|
|
+ }
|
|
|
}
|
|
|
// 暂停状态下,拖动进度
|
|
|
if (resInfo?.api === "api_updateProgress") {
|
|
|
- console.log('拖动的进度')
|
|
|
+ console.log('拖动的进度',state.playState)
|
|
|
if (state.playState === 'paused') {
|
|
|
detailData.currentTime = resInfo?.content?.currentTime ?? detailData.currentTime;
|
|
|
// 坐标和小节都改为初始值
|