liushengqiang 2 éve
szülő
commit
a2fd321f53
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      src/view/evaluating/index.tsx

+ 5 - 2
src/view/evaluating/index.tsx

@@ -261,9 +261,11 @@ const getTestCurrent = () => {
 	const _c = _audio.currentTime * 1000
 	console.log("🚀 ~ 播放的时间测试:", _c)
 	if (_c >= 500){
-		console.log('evaluatingData.backtime: ',  evaluatingData.backtime)
 		console.error('开始播放的延迟:', Date.now() - evaluatingData.backtime - 500)
-		playMusic()
+		// 延迟500毫秒播放
+		setTimeout(() => {
+			playMusic()
+		}, 500)
 		_audio.pause()
 		return
 	}
@@ -393,6 +395,7 @@ export default defineComponent({
 			record_old_data.enableAccompaniment = state.setting.enableAccompaniment
 			// 如果关闭伴奏,评测静音
 			if (!record_old_data.enableAccompaniment){
+				console.log('关闭伴奏')
 				toggleMutePlayAudio(record_old_data.play_mode === 'music' ? 'music' : 'background', true)
 			}
 		};