diff --git a/frontend/src/components/ReasoningView/index.less b/frontend/src/components/ReasoningView/index.less index 82e3f54..1ca7023 100755 --- a/frontend/src/components/ReasoningView/index.less +++ b/frontend/src/components/ReasoningView/index.less @@ -1,5 +1,6 @@ .reasoning-box { width: 100%; + margin-bottom: 24px; .problem-item { width: 100%; diff --git a/frontend/src/view/reasoning/index.vue b/frontend/src/view/reasoning/index.vue index 307fb95..5da3a3a 100755 --- a/frontend/src/view/reasoning/index.vue +++ b/frontend/src/view/reasoning/index.vue @@ -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>([]) // } 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) }