语音优化

This commit is contained in:
2026-02-25 16:28:31 +08:00
parent 214c1f0f37
commit 0efca50be3
39 changed files with 237 additions and 1093 deletions

View File

@@ -158,6 +158,7 @@ import {
} from '@ant-design/icons-vue'
import { message, Modal } from 'ant-design-vue'
import { sendChatStream } from '@/api/agent'
import { copyToClipboard } from '@/utils/clipboard'
const props = defineProps({
visible: { type: Boolean, default: false },
@@ -278,9 +279,13 @@ const handleKeyDown = (e) => {
}
}
const handleCopy = (content) => {
navigator.clipboard.writeText(content)
message.success('已复制')
const handleCopy = async (content) => {
const success = await copyToClipboard(content)
if (success) {
message.success('已复制')
} else {
message.error('复制失败')
}
}
const handleRegenerate = async () => {