|
@@ -1,7 +1,7 @@
|
|
|
import { Skeleton } from "vant";
|
|
|
import { defineComponent, onBeforeMount, onBeforeUnmount, onMounted, reactive, Transition } from "vue";
|
|
|
import { formateTimes } from "../../helpers/formateMusic";
|
|
|
-import state, { isRhythmicExercises } from "../../state";
|
|
|
+import state, { isRhythmicExercises, getMusicDetail } from "../../state";
|
|
|
import { setGlobalData } from "../../utils";
|
|
|
import MusicScore, { resetMusicScore } from "../../view/music-score";
|
|
|
import styles from "./index.module.less";
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
import { getQuery } from "/src/utils/queryString";
|
|
|
import { mappingVoicePart, subjectFingering } from "/src/view/fingering/fingering-config";
|
|
|
import { api_musicPracticeRecordDetail, sysMusicScoreAccompanimentQueryPage } from "../api";
|
|
|
+import { getMusicSheetDetail } from "/src/utils/baseApi"
|
|
|
import ShareTop from "./component/share-top";
|
|
|
import { addMeasureScore } from "/src/view/evaluating";
|
|
|
|
|
@@ -147,11 +148,13 @@ export default defineComponent({
|
|
|
scoreData.intonation = res.data?.intonation;
|
|
|
scoreData.score = res.data?.score;
|
|
|
scoreData.videoFilePath = res.data?.videoFilePath || res.data?.recordFilePath;
|
|
|
- Promise.all([
|
|
|
- sysMusicScoreAccompanimentQueryPage(resultData.musicalNotesPlayStats?.examSongId),
|
|
|
- ]).then((values) => {
|
|
|
- getMusicInfo(values[0]);
|
|
|
- });
|
|
|
+ await getMusicDetail(resultData.musicalNotesPlayStats?.examSongId);
|
|
|
+ detailData.isLoading = false;
|
|
|
+ // Promise.all([
|
|
|
+ // getMusicSheetDetail(resultData.musicalNotesPlayStats?.examSongId),
|
|
|
+ // ]).then((values) => {
|
|
|
+ // getMusicInfo(values[0]);
|
|
|
+ // });
|
|
|
});
|
|
|
|
|
|
const setPathColor = () => {
|