fix: 处理调试时获取不到appid的问题

This commit is contained in:
CaptainB 2024-09-20 10:46:27 +08:00 committed by 刘瑞斌
parent 581440e056
commit 281df5b397

View File

@ -81,6 +81,13 @@ import { ref } from 'vue'
import { copyClick } from '@/utils/clipboard'
import applicationApi from '@/api/application'
import { datetimeFormat } from '@/utils/time'
import { useRoute } from 'vue-router'
const route = useRoute()
const {
params: { id },
} = route as any
const props = defineProps({
data: {
type: Object,
@ -162,7 +169,7 @@ const playAnswerText = (text: string) => {
return
}
applicationApi
.postTextToSpeech(props.applicationId as string, { text: text }, loading)
.postTextToSpeech(id || props.applicationId as string, { text: text }, loading)
.then((res: any) => {
// MP3
// Blob