Przeglądaj źródła

feat: 速度临时处理

TIANYONG 1 rok temu
rodzic
commit
1e0000cb3f
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      src/subpages/colexiu/index.tsx

+ 2 - 3
src/subpages/colexiu/index.tsx

@@ -89,7 +89,7 @@ export default defineComponent({
         fingeringWidth.value = width.value as string
         activeType.value = atype.value as object
         detailState.frozenMode = frozenMode.value
-        detailState.baseSpeed = detail.value.playSpeed ? Number(detail.value.playSpeed) : detailState.baseSpeed;
+        // detailState.baseSpeed = detail.value.playSpeed ? Number(detail.value.playSpeed) : detailState.baseSpeed;
         compulsionEvaluating.value = compulsion.value
         const xml = await useXml(detail.value.xmlFileUrl, detail.value)
         if (!xml.value) {
@@ -203,9 +203,8 @@ export default defineComponent({
       //@ts-ignore
       const saveSpeed = (store.get('speeds') || {})[search.id]
       const bpm = (osmd as any).bpm || osmd.Sheet.userStartTempoInBPM
-
       detailState.activeSpeed = detail.value.playSpeed || bpm || 100
-      detailState.baseSpeed = detail.value.playSpeed || bpm || 100
+      // detailState.baseSpeed = detail.value.playSpeed || bpm || 100
       detailState.code = detail.value?.code || ''
       detailState.activeDetail.originalSpeed = detailState.baseSpeed