Explorar el Código

修改默认音为5

lex hace 1 año
padre
commit
99790ab153
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/page-instrument/view-figner/index.tsx

+ 2 - 1
src/page-instrument/view-figner/index.tsx

@@ -597,7 +597,8 @@ export default defineComponent({
       playAction.listenLock = true; // 锁
       playAction.listenLock = true; // 锁
       playAction.listenTipsStatus = true;
       playAction.listenTipsStatus = true;
       // 设置并保存示例数据
       // 设置并保存示例数据
-      let randomIndex = Math.floor(Math.random() * data.notes.length);
+      let randomIndex = data.notes.findIndex((item: any) => item.realKey === 67); // Math.floor(Math.random() * data.notes.length);
+
       playAction.exampleAnser = data.notes[randomIndex];
       playAction.exampleAnser = data.notes[randomIndex];
       data.realKey = playAction.exampleAnser.realKey;
       data.realKey = playAction.exampleAnser.realKey;
       scrollAnswer(playAction.exampleAnser.realKey);
       scrollAnswer(playAction.exampleAnser.realKey);