|
|
@ -1064,6 +1064,10 @@ watch( |
|
|
|
previousMessagesLength.value = newVal.length; |
|
|
|
if (newVal.length > 0) { |
|
|
|
// 清理语音下标 |
|
|
|
console.log("chatStore.currentUserIndex", chatStore.currentUserIndex); |
|
|
|
if (chatStore.currentUserIndex!=null) { |
|
|
|
chatStore.messages[chatStore.currentUserIndex].audioStatus = false; |
|
|
|
} |
|
|
|
chatStore.currentUserIndex = null; |
|
|
|
audioStore.stop(); // 暂停语音 |
|
|
|
|
|
|
|