+
@@ -107,7 +109,7 @@ const cozeInfo = reactive({
let cozeWebSDK = null;
const initChat = async () => {
const { code, data } = await getChatAgent(query.id);
- if (code != 200) {
+ if (code !== 200) {
return false;
}
@@ -129,15 +131,31 @@ const cozeWebSdkConfig = (botId, name, auth, userInfo) => {
ui: {
chatBot: {
el: document.getElementById('coze-chat-container'),
- width: '95%',
+ width: '100%',
height: '100%',
title: name,
isNeedFunctionCallMessage: true,
+ feedback: {
+ isNeedFeedback: true,
+ feedbackPanel: {
+ title: '您对这个回答有什么看法?请告诉我们',
+ placeholder: '请详细描述您的问题...',
+ tags: [
+ {
+ label: '信息不正确',
+ },
+ {
+ label: '涉及敏感信息',
+ isNeedDetail: true,
+ },
+ ],
+ },
+ },
},
base: {
icon: '',
zIndex: 1000,
- lang:'zh-CN'
+ lang: 'zh-CN',
},
footer: {
expressionText: '内容由AI生成,无法确保真实准确,仅供参考。',
@@ -147,9 +165,9 @@ const cozeWebSdkConfig = (botId, name, auth, userInfo) => {
},
conversations: {
isNeed: true,
- isNeedAddNewConversationBoolean: true,
- isNeedQuoteBoolean: true,
- }
+ isNeedAddNewConversation: true,
+ isNeedQuote: true,
+ },
},
auth: auth,
userInfo: userInfo,
diff --git a/src/views/agent/chat/style.scss b/src/views/agent/chat/style.scss
index e2128d4..32cc581 100644
--- a/src/views/agent/chat/style.scss
+++ b/src/views/agent/chat/style.scss
@@ -40,5 +40,9 @@
}
}
+ .toggle-btn{
+ margin-top: 10px;
+ margin-bottom: 10px;
+ }
}
diff --git a/src/views/agent/index/style.scss b/src/views/agent/index/style.scss
index abc9f94..6fb3d1e 100644
--- a/src/views/agent/index/style.scss
+++ b/src/views/agent/index/style.scss
@@ -124,7 +124,6 @@
gap: 4px;
.status-icon {
- width: 12px;
height: 12px;
}
diff --git a/src/views/agent/work-flow/components/DynamicForm.vue b/src/views/agent/work-flow/components/DynamicForm.vue
index d3cfb62..b7ccc21 100644
--- a/src/views/agent/work-flow/components/DynamicForm.vue
+++ b/src/views/agent/work-flow/components/DynamicForm.vue
@@ -79,7 +79,7 @@ const handleSubmit = async () => {
padding: 24px;
border: 1px solid #d7d7d9; /* 添加灰色边框 */
background: var(--BG-White, white);
- height: 70vh;
+ min-height: 70vh;
:deep(.arco-input-wrapper),
:deep(.arco-textarea-wrapper) {
diff --git a/src/views/agent/work-flow/components/HistoryChat.vue b/src/views/agent/work-flow/components/HistoryChat.vue
index 0ff5bb0..37d2ef3 100644
--- a/src/views/agent/work-flow/components/HistoryChat.vue
+++ b/src/views/agent/work-flow/components/HistoryChat.vue
@@ -2,18 +2,15 @@
-
{{cozeInfo.name}}
+
{{ cozeInfo.name }}
-
![]()
+
工作流
@@ -30,16 +27,14 @@
- {{cozeInfo.description}}
+ {{ cozeInfo.description }}
-