瀏覽代碼

修改默认音为5

lex 1 年之前
父節點
當前提交
99790ab153
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);