|
@@ -372,12 +372,8 @@ export default defineComponent({
|
|
|
});
|
|
|
/** 播放类型按钮 */
|
|
|
const playTypeBtn = computed(() => {
|
|
|
- // 选择模式,跟练模式 不显示
|
|
|
- if (headTopData.modeType !== "show" || state.modeType === "follow") return { display: false, disabled: false };
|
|
|
- // 评测开始 禁用
|
|
|
- if (state.modeType === "evaluating") return { display: false, disabled: true };
|
|
|
- // 音频播放中 禁用
|
|
|
- if (state.playState === "play") return { display: true, disabled: true };
|
|
|
+ // 选择模式,跟练模式,评测模式 不显示
|
|
|
+ if (headTopData.modeType !== "show" || state.modeType === "follow" || state.modeType === "evaluating") return { display: false, disabled: false };
|
|
|
if (!state.isAppPlay) {
|
|
|
let index = 0;
|
|
|
state.music && index++;
|
|
@@ -388,12 +384,16 @@ export default defineComponent({
|
|
|
state.mingSong && songIndex++;
|
|
|
// 演唱和演奏 都有数据的时间不禁用
|
|
|
if (songIndex > 0 && index > 0) {
|
|
|
+ // 音频播放中 禁用
|
|
|
+ if(state.playState === "play"){
|
|
|
+ return { display: true, disabled: true }
|
|
|
+ }
|
|
|
return { display: true, disabled: false };
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
- disabled: true,
|
|
|
- display: true,
|
|
|
+ disabled: false,
|
|
|
+ display: false,
|
|
|
};
|
|
|
});
|
|
|
/** 模式切换按钮 */
|