فهرست منبع

fix: bug修复

TIANYONG 11 ماه پیش
والد
کامیت
4097ef449c
3فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 5 1
      src/state.ts
  2. 1 1
      src/view/follow-practice/index.tsx
  3. 2 2
      src/view/selection/index.module.less

+ 5 - 1
src/state.ts

@@ -1341,7 +1341,11 @@ const getMusicInfo = async (res: any) => {
   state.isScoreRender = res.data?.isScoreRender
   // 是否默认显示总谱
   state.defaultScoreRender = res.data?.defaultScoreRender
-  const partIndex = query["part-index"] ? parseInt(query["part-index"]) : -1 // -1为partIndex没有值的时候
+  let partIndex = query["part-index"] ? parseInt(query["part-index"]) : -1 // -1为partIndex没有值的时候
+  // 如果是评测报告,会有默认的分轨index
+  if (state.isEvaluatReport) {
+    partIndex = state.partIndex;
+  }
   /* 获取声轨列表 */
   let xmlString = await fetch(res.data.xmlFileUrl).then((response) => response.text());
   xmlString = xmlAddPartName(xmlString);

+ 1 - 1
src/view/follow-practice/index.tsx

@@ -135,7 +135,7 @@ export const handleFollowStart = async () => {
 		followData.index = state.activeNoteIndex;
 		followData.list = [];
 		initSetPlayRate();
-		resetPlaybackToStart();
+		// resetPlaybackToStart();
 		openToggleRecord(true);
 		getNoteIndex();
 		const duration: any = getDuration(state.osmd as unknown as OpenSheetMusicDisplay);

+ 2 - 2
src/view/selection/index.module.less

@@ -205,11 +205,11 @@
     position: relative;
     width: fit-content;
     left: 50%;
-    top: -42px;
+    top: -40px;
     transform: translate(-50%);
     > img {
         width: auto;
-        height: 30px;
+        height: 35px;
     }
 }