fix: 处理调试时获取不到appid的问题
This commit is contained in:
parent
581440e056
commit
281df5b397
@ -81,6 +81,13 @@ import { ref } from 'vue'
|
|||||||
import { copyClick } from '@/utils/clipboard'
|
import { copyClick } from '@/utils/clipboard'
|
||||||
import applicationApi from '@/api/application'
|
import applicationApi from '@/api/application'
|
||||||
import { datetimeFormat } from '@/utils/time'
|
import { datetimeFormat } from '@/utils/time'
|
||||||
|
import { useRoute } from 'vue-router'
|
||||||
|
|
||||||
|
const route = useRoute()
|
||||||
|
const {
|
||||||
|
params: { id },
|
||||||
|
} = route as any
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@ -162,7 +169,7 @@ const playAnswerText = (text: string) => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
applicationApi
|
applicationApi
|
||||||
.postTextToSpeech(props.applicationId as string, { text: text }, loading)
|
.postTextToSpeech(id || props.applicationId as string, { text: text }, loading)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
// 假设我们有一个 MP3 文件的字节数组
|
// 假设我们有一个 MP3 文件的字节数组
|
||||||
// 创建 Blob 对象
|
// 创建 Blob 对象
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user