浏览代码

fix: 跟练模式bug修复

TIANYONG 1 年之前
父节点
当前提交
c709c033b6
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      src/subpages/colexiu/buttons/evaluating.tsx
  2. 1 1
      src/subpages/colexiu/popups/follow/index.tsx

+ 3 - 1
src/subpages/colexiu/buttons/evaluating.tsx

@@ -29,6 +29,7 @@ import qs from 'query-string'
 import CheckDelayPopup from "/src/pages/detail/CheckDelayPopup";
 import Headphone, { HeadphoneData } from "/src/pages/detail/Headphone";
 import { modelType } from './index'
+import { data } from '../popups/follow'
 
 /** 初始化评测音频 */
 export const evaluatCreateMusicPlayer = () => {
@@ -152,7 +153,7 @@ let startTuneTimer: any = null
   }
   /** 评测效验 */
   const checkEvaluating = async () => {
-    delayData.erji = await getWiredStatus();
+    // delayData.erji = await getWiredStatus();
     delayData.time = await getDeviceDelay();
     // 没有设备延迟数据,显示检测组件,并持续检测耳机状态
     if (!delayData.time || delayData.isForce) {
@@ -250,6 +251,7 @@ let startTuneTimer: any = null
 			runtime.delayCheckFirst = true
 			delayData.open = false
       startButtonShow.value = true
+      data.start = false
       setTimeout(() => {
         delayData.checkStatus = 'init'
         delayData.step = 1

+ 1 - 1
src/subpages/colexiu/popups/follow/index.tsx

@@ -18,7 +18,7 @@ const togglePlayer = (show: boolean = false) => {
     globalPlayer.style.display = show ? '' : 'none'
   }
 }
-const data = reactive({
+export const data = reactive({
   list: [] as any, // 频率列表
   index: 0,
   start: false,