|
@@ -110,6 +110,7 @@ import { useRoute } from 'vue-router';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
const emit = defineEmits(['orderOverwrite']);
|
|
|
import mittBus from '@/utils/mitt';
|
|
|
+import { voiceAssistantContent } from "@/api/todo/voiceAssistant";
|
|
|
// 消息列表
|
|
|
const messageList = ref<any>([
|
|
|
/*{
|
|
@@ -193,13 +194,14 @@ const closeSearch = () => {
|
|
|
searchCol.value = !searchCol.value;
|
|
|
};
|
|
|
// 获取识别内容
|
|
|
-const getRecognize = () => {
|
|
|
- const callId = route.params.callId;
|
|
|
- axios.get(`${import.meta.env.VITE_VOICE_ASSISTANT_API_URL}/monitor/remote/details/${callId}`).then((res) => {
|
|
|
- const { data } = res;
|
|
|
- const { result } = data;
|
|
|
- recognizeList.value = result;
|
|
|
- });
|
|
|
+const getRecognize = async () => {
|
|
|
+ try {
|
|
|
+ const callId = route.params.callId;
|
|
|
+ const {result} = await voiceAssistantContent(typeof callId === "string" ? callId :'');
|
|
|
+ recognizeList.value = result;
|
|
|
+ }catch (error) {
|
|
|
+ console.log('获取识别内容失败', error);
|
|
|
+ }
|
|
|
};
|
|
|
// 停止滚动
|
|
|
const stopScroll = () => {
|