refactor(agent): 重构智能对话页面布局和样式
- 重新设计了页面布局,分为左、右两个主要区域 - 左侧区域增加了聊天机器人信息展示,包括头像、名称、描述等 - 右侧区域保留聊天窗口,并增加了顶部栏 -优化了响应式布局,使页面在不同屏幕尺寸下都能良好显示 - 调整了颜色、字体等样式,提升了页面视觉效果
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import Http from '@/api';
|
||||
// 获取聊天智能体
|
||||
export const getChatAgent = (id: number) => {
|
||||
console.log('param.id',id);
|
||||
console.log('param.id', id);
|
||||
return Http.get(`/v1/agent/getChatAgent/${id}`);
|
||||
};
|
||||
|
||||
@ -32,11 +32,23 @@ export const delAgentMessage = (params: any) => {
|
||||
return Http.post(`/v1/agent/delAgentMessage`, params);
|
||||
};
|
||||
// 删除工作流历史记录
|
||||
export const delWorkflowHistoryApi = (id:number) => {
|
||||
export const delWorkflowHistoryApi = (id: number) => {
|
||||
return Http.post(`/v1/agent/delWorkflowHistory/${id}`);
|
||||
};
|
||||
|
||||
//获取异步执行工作流任务
|
||||
export const getSyncWorkflowTaskApi = (params:any) => {
|
||||
return Http.get(`/v1/agent/getSyncWorkflowTask`,params);
|
||||
export const getSyncWorkflowTaskApi = (params: any) => {
|
||||
return Http.get(`/v1/agent/getSyncWorkflowTask`, params);
|
||||
};
|
||||
//置顶
|
||||
export const topWorkflowHistoryApi = (id: number) => {
|
||||
return Http.post(`/v1/agent/topWorkflowHistory/${id}`);
|
||||
};
|
||||
//取消指定
|
||||
export const cancelTopWorkflowHistoryApi = (id: number) => {
|
||||
return Http.post(`/v1/agent/cancelTopWorkflowHistory/${id}`);
|
||||
};
|
||||
|
||||
export const getWorkflowHistoryListApi = (param: any) => {
|
||||
return Http.get(`/v1/agent/getWorkflowHistoryList`, param);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user