|
@@ -19,7 +19,7 @@ import { getQuery } from "/src/utils/queryString";
|
|
|
import { storeData } from "/src/store";
|
|
|
import TeacherTop from "../custom-plugins/guide-page/teacher-top";
|
|
|
import StudentTop from "../custom-plugins/guide-page/student-top";
|
|
|
-import { HANDLE_WORK_ADD } from "../custom-plugins/work-index";
|
|
|
+import { HANDLE_WORK_ADD, resetSection } from "../custom-plugins/work-index";
|
|
|
import { browser } from "/src/utils";
|
|
|
import store from "store";
|
|
|
import "../component/the-modal-tip/index.module.less";
|
|
@@ -168,6 +168,10 @@ export async function handlerModeChange(oldPlayType: "play" | "sing", oldPlaySou
|
|
|
handleRessetState();
|
|
|
// 隐藏重播按钮
|
|
|
resetBtn && (resetBtn.value.display = false);
|
|
|
+ // 如果是作业模式,切成场景(演奏、演唱切换)需要重新设置作业选段和速度
|
|
|
+ if (getQuery().workRecord) {
|
|
|
+ resetSection();
|
|
|
+ }
|
|
|
}
|
|
|
// 节拍器音频加载
|
|
|
await handleLoadBeatMusic()
|