Browse Source

feat: 点击听音练习默认播放的第一个音修改

TIANYONG 6 months ago
parent
commit
5a8d6efad9
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/page-instrument/view-figner/index.tsx
  2. 2 2
      vite.config.ts

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

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

+ 2 - 2
vite.config.ts

@@ -76,8 +76,8 @@ export default defineConfig({
         // target: "https://kt.colexiu.com",
         // target: "https://test.lexiaoya.cn",
         // target: "https://kt.colexiu.com",
-        target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
-        // target: "https://test.kt.colexiu.com",
+        // target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
+        target: "https://test.kt.colexiu.com",
         //target: "https://mec.colexiu.com",
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/instrument/, ""),