zhupei 1 год назад
Родитель
Сommit
dac642b521

+ 0 - 3
package-lock.json

@@ -12706,9 +12706,6 @@
         "vue": "^3.2.0"
       }
     },
-    "node_modules/webpack": {
-      "peer": true
-    },
     "node_modules/webpack-virtual-modules": {
       "version": "0.6.2",
       "resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz",

+ 2 - 1
public/config.js

@@ -15,7 +15,8 @@ window.WEBSOCKET_BASE_URL = 'ws://smartai.com:8164';
  * 静态资源地址
  * 图片、文档等类型的地址
  */
-window.ASSETS_BASE_URL = 'http://smartai.com:8401';
+// window.ASSETS_BASE_URL = 'http://smartai.com:8401';
+window.ASSETS_BASE_URL = 'http://192.168.20.116';
 
 /**
  * rgflow 接口地址

+ 1 - 1
src/modules/conversation-chat/DialogItem.vue

@@ -86,7 +86,7 @@ const answerInfo = computed(() => {
   // obj.client_custom_linked_sql = chat_info.client_custom_linked_sql || '';
   // obj.client_custom_linked_code = chat_info.client_custom_linked_code || '';
   // obj.client_custom_linked_refference_full_content = chat_info.client_custom_linked_refference_full_content || '';
-  // obj.client_custom_linked_image = chat_info.client_custom_linked_image || '';
+  obj.client_custom_linked_image = chat_info.client_custom_linked_image || '';
 
   obj.client_custom_linked_download_files = chat_info.client_custom_linked_download_files || '';
   obj.client_custom_linked_download_files_List = chat_info.client_custom_linked_download_files_List || [];

+ 5 - 1
src/modules/conversation-dialog/format-dialog-answer-from-sse_receive_message.js

@@ -368,9 +368,13 @@ export default function formatDialogAnswerFromSseReceiveMessage(message_obj, pre
     chat_status = 2;
   }
   if (resType === 'message_file') {
+    chat_status = 1;
+
     if (res_content.type == 'image') {
-      currentMsg.answer += `<img src="${res_content.url}" />`;
+      // currentMsg.answer += `<img src="${res_content.url}" />`;
+      currentMsg.client_custom_linked_image = res_content.url;
     }
+
     if (res_content.type == 'document') {
       if (res_content.url) {
         const parts = path.split('/');

+ 2 - 1
src/views/conversation/ConversationChatContainer.vue

@@ -1304,10 +1304,11 @@ const sseOnMessage = (ev) => {
 
   const currentChat = formatDialogAnswerFromSseReceiveMessage(res_data, last_msg, props.CHAT_AGENT_INFOMATION);
   const chat_status = currentChat.status;
+
   // 处理对话数据
   const handleChatData = () => {
     const chat_data = currentChat.data; // 对话相关的数据项
-    console.log(chat_data);
+
     // 原来的最后一项弹出
     chat_new_list.value.pop();
     // 添加新的最后一项