This commit is contained in:
“yangqiao”
2025-02-24 20:45:31 +08:00
parent 685c5b4d73
commit bd2a7397c9
2 changed files with 3 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
.reasoning-box {
width: 100%;
margin-bottom: 24px;
.problem-item {
width: 100%;

View File

@@ -67,7 +67,7 @@ import collapseView from '../../components/collapseView/index.vue'
import CameraView from '../../components/CameraView/index.vue'
// Expand, Fold
import { Plus, VideoCameraFilled } from '@element-plus/icons-vue'
import { ref, onMounted, nextTick, watch } from 'vue'
import { ref, onMounted, nextTick } from 'vue'
// import { getModelList } from '../../api/user'
import { useRoute } from 'vue-router'
import useWebSocket from '../../utils/websocket'
@@ -109,9 +109,7 @@ const reasoningList = ref<Array<any>>([])
// }
const submitFun = (val: any) => {
completeFun()
addMode(JSON.parse(val).content)
// let data = val
// data.content = JSON.stringify(data.content)
// addMode(JSON.parse(val).content)
ws.send(val)
}
const addMode = (val: any) => {
@@ -146,23 +144,6 @@ const getMessage = async (e: any) => {
if (data.content) {
let list = reasoningList.value[reasoningList.value.length - 1].children
list.push(data)
// let status = list.filter(
// (key: any) =>
// key.group_name === data.group_name && key.agent_name === data.agent_name
// )[0]
// if (list.length && status && status.agent_name) {
// for (let i = 0; i < list.length; i++) {
// const item = list[i]
// if (
// item.group_name === data.group_name &&
// item.agent_name === data.agent_name
// ) {
// item.content += data.content
// }
// }
// } else {
// list.push(JSON.parse(e))
// }
}
}
const ws = useWebSocket(handleMessage, '')
@@ -170,8 +151,6 @@ const sendFun = () => {
setTimeout(() => {
addMode(JSON.parse(route.query.content).content)
completeFun()
// let data = route.query.content
// data.content = JSON.stringify(data.content)
ws.send(route.query.content)
}, 300)
}