From fcd40cf1ce0d980415675bb0a089e1c4c1d030e4 Mon Sep 17 00:00:00 2001 From: han2015 <1019850453@qq.com> Date: Mon, 20 Oct 2025 15:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E7=9B=98=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/views/doc/agent.vue | 4 ++++ src/views/doc/manage.vue | 3 ++- src/views/doc/space.vue | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.env.production b/.env.production index d3ed364..40853e2 100644 --- a/.env.production +++ b/.env.production @@ -7,4 +7,4 @@ VITE_APP_TOKEN_KEY = 'onlineAccessSystemAppToken' VITE_APP_SJZT_URL = 'http://120.224.6.6:29911/prod-api' VITE_OFFICE_HOST='https://gyhlw.hxgk.group/kkapi' VITE_ONLYOFFICE_HOST = 'https://gyhlw.hxgk.group/onlyoffice' -VITE_DEFAULT_AI_AGENT = '23a3c2c5-2de1-40df-59fa-a9206b11861d' \ No newline at end of file +VITE_DEFAULT_AI_AGENT = '74938263-ffe5-43c5-90af-25e62d34a51f' \ No newline at end of file diff --git a/src/views/doc/agent.vue b/src/views/doc/agent.vue index d638872..1942a07 100644 --- a/src/views/doc/agent.vue +++ b/src/views/doc/agent.vue @@ -37,6 +37,10 @@ const props = withDefaults(defineProps<{ const respMsg=ref("") +watch(props,()=>{ + currentAgent.value=props.agent +}) + //消息体 interface message{ ask:boolean, diff --git a/src/views/doc/manage.vue b/src/views/doc/manage.vue index dcd0e87..4a9bb33 100644 --- a/src/views/doc/manage.vue +++ b/src/views/doc/manage.vue @@ -347,7 +347,8 @@ function onLoadMatterList(){ } //----------for dir----------- function createDir(){ - if(matterList.value){ + if(matterList.value.length>0){ + //防止多次新建目录 if (matterList.value[0].name=="") return; } matterList.value?.unshift({ diff --git a/src/views/doc/space.vue b/src/views/doc/space.vue index 645d87a..b512691 100644 --- a/src/views/doc/space.vue +++ b/src/views/doc/space.vue @@ -482,7 +482,7 @@ function handleAiUpload(info:matterInfo){ }) }) }else{ - alert("当前路径没有智能体") + console.log("当前路径没有智能体,不需要训练") } }