fix: bug

This commit is contained in:
杨航
2025-11-10 09:43:47 +08:00
parent 6a4cbcd5d3
commit a7063e4cb9
2 changed files with 4 additions and 8 deletions
@@ -593,8 +593,6 @@
itemVoice.value = res.tempFilePath;
talkVoiceObj.value.src = res.tempFilePath;
// 判斷是否在當前頁面
// unref(dataInfo)?.id
console.log(unref(isGettingId), unref(dataInfo)?.id)
if(unref(isGettingId) === unref(dataInfo)?.id){
talkVoiceObj.value.play();
}
+4 -6
View File
@@ -322,11 +322,9 @@
// 关闭播放状态
const changePlayItemId = (id = '') => {
activeVoiceTalkingItemId.value = id
// if(activeVoiceTalkingItemId.value === id){
// activeVoiceTalkingItemId.value = ''
// }else{
// activeVoiceTalkingItemId.value = id
// }
if(id == ''){
storageStore.setGettingVoiceId(id);
}
}
// 选择的教师对象信息
const choiceTeacherInfo = computed(() => {
@@ -811,7 +809,7 @@
teacherVoiceObj.src = ''
} catch {}
storageStore.setStorage('setGettingVoiceId', '');
storageStore.setGettingVoiceId('');
// common.show('提示信息', '检测到您已离开,即将退出学习页面。',false, '','确认').then((res) => {
// common.redirectTo(`/pages/courseDetail/index?crsId=${crsId.value}&crsNum=${crsNum.value}&from=study`)
// }).finally(() => {})