|
@@ -1,4 +1,4 @@
|
|
|
-import { Transition, defineComponent, onMounted, reactive, watch, defineAsyncComponent } from "vue";
|
|
|
+import { Transition, defineComponent, onMounted, reactive, watch, defineAsyncComponent, computed } from "vue";
|
|
|
import { connectWebsocket, evaluatingData, handleEndBegin, handleStartBegin, handleStartEvaluat, handleViewReport, startCheckDelay, checkUseEarphone, handleCancelEvaluat } from "/src/view/evaluating";
|
|
|
import Earphone from "./earphone";
|
|
|
import styles from "./index.module.less";
|
|
@@ -404,6 +404,10 @@ export default defineComponent({
|
|
|
handleEvaluatResult("tryagain");
|
|
|
};
|
|
|
|
|
|
+ const earPhonePopShow = computed(() => {
|
|
|
+ return evaluatingData.earphoneMode && state.audioDone && !state.hasDriverPop;
|
|
|
+ });
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
// 如果打开了延迟检测开关,需要先发送开始检测的消息
|
|
|
if (state.setting.soundEffect) {
|
|
@@ -454,7 +458,7 @@ export default defineComponent({
|
|
|
{
|
|
|
evaluatingData.isBeginMask && <div class={styles.beginMask}></div>
|
|
|
}
|
|
|
- <Popup teleport="body" closeOnClickOverlay={false} class={["popup-custom", "van-scale"]} transition="van-scale" v-model:show={evaluatingData.earphoneMode}>
|
|
|
+ <Popup teleport="body" closeOnClickOverlay={false} class={["popup-custom", "van-scale"]} transition="van-scale" v-model:show={earPhonePopShow.value}>
|
|
|
<Earphone
|
|
|
earphoneType={evaluatingData.earPhoneType}
|
|
|
onClose={() => {
|