Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ui/src/components/ai-chat/OperationButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 对象
Expand Down
Loading