Procházet zdrojové kódy

修改默认音为5

lex před 1 rokem
rodič
revize
99790ab153
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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.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];
       data.realKey = playAction.exampleAnser.realKey;
       scrollAnswer(playAction.exampleAnser.realKey);