feat: 部分语音聊天功能

This commit is contained in:
2025-06-30 10:49:24 +08:00
parent 06e6b4a8c9
commit ac5e68f5a5
10 changed files with 594 additions and 25 deletions

View File

@@ -34,13 +34,15 @@ const handleClick = () => {
ttsStore.convertText(text, messageId);
}
};
// 当文本改变时清理之前的音频
// 文本改变清理之前的音频
watch(
() => text,
() => {
ttsStore.clearAudio(messageId);
}
);
onUnmounted(() => {
ttsStore.clearAudio(messageId);
});