fix ;bug
This commit is contained in:
@@ -582,7 +582,7 @@
|
||||
talkVoiceObj.value.src = url;
|
||||
talkVoiceObj.value.play();
|
||||
} else {
|
||||
storageStore.setStorage('setGettingVoiceId', unref(dataInfo)?.id);
|
||||
storageStore.setGettingVoiceId(unref(dataInfo)?.id);
|
||||
downloadVoiceFile(_url)
|
||||
.then((res) => {
|
||||
if (res?.data) {
|
||||
@@ -594,6 +594,7 @@
|
||||
talkVoiceObj.value.src = res.tempFilePath;
|
||||
// 判斷是否在當前頁面
|
||||
// unref(dataInfo)?.id
|
||||
console.log(unref(isGettingId), unref(dataInfo)?.id)
|
||||
if(unref(isGettingId) === unref(dataInfo)?.id){
|
||||
talkVoiceObj.value.play();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user