|
@@ -425,7 +425,13 @@ export const onPlay = () => {
|
|
|
const autoResetPlay = () => {
|
|
|
// 作业模式,出现作业提交弹窗时,不进行自动重播逻辑
|
|
|
if (state.modeType !== "practise" || state.showWorkDonePop) return;
|
|
|
- skipNotePlay(0, true);
|
|
|
+ // 如果是midi的曲子,并且有选段,重置到预备小节的位置
|
|
|
+ if (state.isAppPlay && state.section.length === 2) {
|
|
|
+ const startItemINdex = state.sectionFirst ? state.sectionFirst.i : state.section[1].i;
|
|
|
+ skipNotePlay(startItemINdex, true);
|
|
|
+ } else {
|
|
|
+ skipNotePlay(0, true);
|
|
|
+ }
|
|
|
// 没有开启自动重播, 不是练习模式
|
|
|
if (!state.setting.repeatAutoPlay) return;
|
|
|
offsetTop = 0;
|