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/api/doc/space.ts b/src/api/doc/space.ts
index 219160e..2013476 100644
--- a/src/api/doc/space.ts
+++ b/src/api/doc/space.ts
@@ -220,4 +220,29 @@ export function getAiagentList(data?: any){
method: 'post',
data: data
});
+}
+
+/**
+ * 更新会话
+ * @requires key
+ *
+ */
+export function getShareChat(key: string){
+ return request({
+ url: '/aibot/chat/shared/'+key,
+ method: 'get',
+ });
+}
+
+/**
+ * 更新会话
+ * @requires key agentID+chatID+index
+ * @requires data
+ */
+export function newShareChat(data: any){
+ return request({
+ url: '/aibot/chat/share',
+ method: 'post',
+ data: data
+ });
}
\ No newline at end of file
diff --git a/src/router/index.ts b/src/router/index.ts
index 6267e9b..5cd96e8 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -38,6 +38,11 @@ export const constantRoutes: RouteRecordRaw[] = [
component: () => import("@/views/doc/onlyoffice.vue"),
meta: { hidden: true },
},
+ {
+ path: "/agent",
+ component: () => import("@/views/doc/showtext.vue"),
+ meta: { hidden: true },
+ },
{
path: "/",
diff --git a/src/views/doc/agent.vue b/src/views/doc/agent.vue
index b8d70e4..1942a07 100644
--- a/src/views/doc/agent.vue
+++ b/src/views/doc/agent.vue
@@ -5,11 +5,11 @@
-->
+
+
+
+
+
恒信高科AI平台
+
+ {{ msg.content }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/doc/space.vue b/src/views/doc/space.vue
index 645d87a..e7c5d88 100644
--- a/src/views/doc/space.vue
+++ b/src/views/doc/space.vue
@@ -234,6 +234,7 @@ function onLoadMatterList(name?:string){
}).map(val => {
const copy = structuredClone(toRaw(val))
copy.dir = !copy.dir
+ copy.manager=props.ismanager
return copy
})
@@ -482,7 +483,7 @@ function handleAiUpload(info:matterInfo){
})
})
}else{
- alert("当前路径没有智能体")
+ console.log("当前路径没有智能体,不需要训练")
}
}