|
@@ -1,6 +1,6 @@
|
|
|
import { defineComponent, reactive, watch } from "vue";
|
|
|
import state from "/src/state";
|
|
|
-import { api_lessonTrainingSubmitTraining, sysMusicRecordAdd } from "../../api";
|
|
|
+import { api_musicPracticeRecordSave } from "../../api";
|
|
|
import { browser, getBehaviorId, getCampId } from "/src/utils";
|
|
|
import { getQuery } from "/src/utils/queryString";
|
|
|
|
|
@@ -10,7 +10,6 @@ const recordData = reactive({
|
|
|
const handleRecord = () => {
|
|
|
// 不是练习模式不记录
|
|
|
if (state.modeType !== "practise") return;
|
|
|
- const query = getQuery();
|
|
|
let total = Date.now() - recordData.starTime;
|
|
|
recordData.starTime = Date.now();
|
|
|
if (total < 0) total = 0;
|
|
@@ -25,7 +24,7 @@ const handleRecord = () => {
|
|
|
deviceType: browser().android ? "ANDROID" : "IOS",
|
|
|
behaviorId: getBehaviorId(),
|
|
|
};
|
|
|
- // musicPracticeRecordSave(body);
|
|
|
+ api_musicPracticeRecordSave(body);
|
|
|
};
|
|
|
|
|
|
export const handleNoEndExit = () => {
|