语音优化
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user