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("当前路径没有智能体,不需要训练") } }