diff --git a/pages/chat/ChatCardAI.vue b/pages/chat/ChatCardAI.vue
index 8893fda..81cd12e 100644
--- a/pages/chat/ChatCardAI.vue
+++ b/pages/chat/ChatCardAI.vue
@@ -1,7 +1,7 @@
-
+
diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue
index cff7fd6..7d9bda4 100644
--- a/pages/chat/ChatMainList.vue
+++ b/pages/chat/ChatMainList.vue
@@ -33,7 +33,8 @@
-
+
+
@@ -93,6 +94,7 @@
import DiscoveryCardComponent from '../module/discovery/DiscoveryCardComponent.vue';
import ActivityListComponent from '../module/banner/ActivityListComponent.vue';
import RecommendPostsComponent from '../module/recommend/RecommendPostsComponent.vue';
+ import AttachListComponent from '../module/attach/AttachListComponent.vue';
import CreateServiceOrder from '@/components/CreateServiceOrder/index.vue'
@@ -365,7 +367,6 @@
if (chunk && chunk.finish) {
// 结尾处理:确保剩余内容全部输出
const finishInterval = setInterval(() => {
- console.log('aiMsgBuffer.length:', aiMsgBuffer.length)
if (aiMsgBuffer.length === 0) {
clearInterval(finishInterval);
clearInterval(loadingTimer);
@@ -382,12 +383,19 @@
chatMsgList.value[aiMsgIndex].msg = '';
}
}
-
+ // 如果有组件
if(chunk.toolCall) {
console.log('chunk.toolCall:', chunk.toolCall)
chatMsgList.value[aiMsgIndex].toolCall = chunk.toolCall
}
+ console.log("============>", chunk.question)
+
+ // 如果有问题,则设置问题
+ if(chunk.question && chunk.question.length > 0) {
+ chatMsgList.value[aiMsgIndex].question = chunk.question
+ }
+
isSessionActive = false;
scrollToBottom();
}
diff --git a/pages/chat/ChatTopWelcome.vue b/pages/chat/ChatTopWelcome.vue
index 0e9022d..f940814 100644
--- a/pages/chat/ChatTopWelcome.vue
+++ b/pages/chat/ChatTopWelcome.vue
@@ -4,7 +4,7 @@
- {{ currentDate }} 多云 -3~6℃ cc
+ {{ currentDate }} 多云 -3~6℃ ff
diff --git a/pages/module/attach/AttachListComponent.vue b/pages/module/attach/AttachListComponent.vue
new file mode 100644
index 0000000..204257b
--- /dev/null
+++ b/pages/module/attach/AttachListComponent.vue
@@ -0,0 +1,65 @@
+
+
+
+ {{ item }}
+
+
+
+
+
+
+