语音优化
This commit is contained in:
@@ -10,6 +10,7 @@ import TikhubService, { InterfaceType, MethodType } from '@/api/tikhub/index.js'
|
||||
import { useBenchmarkData } from './composables/useBenchmarkData'
|
||||
import { useBenchmarkAnalysis } from './composables/useBenchmarkAnalysis'
|
||||
import { formatTime } from './utils/benchmarkUtils'
|
||||
import { copyToClipboard } from '@/utils/clipboard'
|
||||
import BenchmarkForm from './components/BenchmarkForm.vue'
|
||||
import BenchmarkTable from './components/BenchmarkTable.vue'
|
||||
import BatchAnalyzeModal from './components/BatchAnalyzeModal.vue'
|
||||
@@ -231,17 +232,18 @@ async function handleLoadMore() {
|
||||
}
|
||||
}
|
||||
|
||||
function handleCopyBatchPrompt(prompt) {
|
||||
async function handleCopyBatchPrompt(prompt) {
|
||||
if (!prompt?.trim()) {
|
||||
message.warning('没有提示词可复制')
|
||||
return
|
||||
}
|
||||
|
||||
navigator.clipboard.writeText(prompt).then(() => {
|
||||
const success = await copyToClipboard(prompt)
|
||||
if (success) {
|
||||
message.success('提示词已复制到剪贴板')
|
||||
}).catch(() => {
|
||||
} else {
|
||||
message.error('复制失败')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function handleUseBatchPrompt(prompt) {
|
||||
|
||||
Reference in New Issue
Block a user