浏览代码

fix:去除一些无效打印

hanyang 1 年之前
父节点
当前提交
b1f2375979

+ 0 - 2
src/modules/conversation-dialog/format-dialog-answer-from-history.js

@@ -192,9 +192,7 @@ export default function formatDialogAnswerFromHistory(item, agentInfo) {
     // 文档引用,在知识问答板块中,存在一些文档引用内容
     // 需要在对话的答案底部显示文档引用的节点
     // 将文档引用相关的数据拼接到答案的底部
-    console.log(resRefference, 999);
     const ref_str = formatRefferenceString(resRefference, 'client_custom_linked_refference_full_content');
-    console.log(ref_str, 9);
     if (ref_str) {
       history_item.answer =
         history_item.answer +

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

@@ -134,10 +134,6 @@ export default function formatDialogAnswerFromSseReceiveMessage(message_obj, pre
     }
   }
 
-  // console.log(message_obj.message_id, 3333);
-
-  // console.log(currentMsg.client_custom_chat_message_id, 444);
-
   /**
    * 将前面websocket发来的数据,合并到当前的消息中
    */
@@ -248,7 +244,6 @@ export default function formatDialogAnswerFromSseReceiveMessage(message_obj, pre
       // 需要在对话的答案底部显示文档引用的节点
       // 将文档引用相关的数据拼接到答案的底部
       const ref_str = formatRefferenceString(resRefference, 'client_custom_linked_refference_full_content');
-      console.log(ref_str, 8);
       if (ref_str) {
         currentMsg.answer = currentMsg.answer + `${ref_str}`;
       }
@@ -476,9 +471,8 @@ export default function formatDialogAnswerFromSseReceiveMessage(message_obj, pre
   //  * 在answer字符串渲染到界面之前,在answer后拼接的html字符串
   //  */
   // currentMsg.client_custom_attached_html_before_render = temp_html_str;
-  // console.log('currentMsg', currentMsg.answer, 111111111111111);
+
   formatDialogAnswerAttachedHtmlBeforeRender(currentMsg);
-  // console.log('currentMsg', currentMsg.answer, 22222222222);
   if (message_obj.message_id) {
     currentMsg.client_custom_chat_message_id = message_obj.message_id;
   }

+ 0 - 1
src/modules/conversation-item/DialogAnswer.vue

@@ -361,7 +361,6 @@ watch(
     const full_refference = answer.client_custom_linked_refference_full_content;
     const download_files = answer.client_custom_linked_download_files;
     const download_file_list = answer.client_custom_linked_download_files_List || [];
-    console.log(answer_status.value);
     if (answer_status.value === 0 || answer_status.value === 1) {
       return;
     }

+ 0 - 50
src/views/conversation/ConversationChatContainer.vue

@@ -628,7 +628,6 @@ const handleEditChat = (item) => {
 const retry_action_option = ref(null);
 const handleActionConfigChange = (config) => {
   retry_action_option.value = config;
-  console.log(retry_action_option.value);
 };
 /**
  * 重新生成
@@ -658,46 +657,7 @@ const handleRetryChat = async (item) => {
         chatMode
       }
     };
-    console.log(options);
     toSubmitNewChat(options);
-
-    // const question_item = chat_display_list.value[question_idx - 1];
-    // console.log(question_item, 11);
-
-    // //查看是否携带文件或知识库参数
-    // const ask_text = question_item.question;
-    // const ask_files = question_item.client_custom_upload_file_list;
-    // const knowledgeIdList = question_item.client_custom_knowledge_id;
-    // const client_question = formatDialogQuestionByClient(ask_text, ask_files, knowledgeIdList);
-    // chat_new_question.value = client_question;
-    // // 消息即将发送,记录用户的提问数据
-    // chat_new_list.value.push(chat_new_question.value);
-    // // 客户端答案数据(loading状态),客户端模拟的答案数据,依据此数据展示加载中的动画
-    // const answerLoadingMsg = formatDialogAnswerForLoading(props.CHAT_AGENT_INFOMATION);
-    // chat_new_list.value.push(answerLoadingMsg);
-    // inputClearFn1();
-    // inputClearFn2();
-    // // 清空可能存在的推荐项目
-    // chat_suggestion.value = [];
-    // // 清空已保存的提问数据(提问数据已经推入数组,此处无需继续保存)
-    // chat_new_question.value = null;
-    // // 文件上传、文本输入区域禁用
-    // input_disabled.value = true;
-    // // 对话区域滚动到底部
-    // scroll2ListBottom();
-    // // 组合参数
-    // // if()
-    // const query_params = {
-    //   query: ask_text,
-    //   files: ask_files,
-    //   session_id: props.session_id || '',
-    //   knowledgeId: knowledgeIdList,
-    //   chatMode: action_config.chatMode,
-    //   isDeep: action_config.isDeep,
-    //   parentId: parent_id
-    // };
-    // startStream(query_params, sseOnMessage);
-    // return;
   }
 };
 
@@ -1220,7 +1180,6 @@ const handleInputSubmit = async (options) => {
 };
 // 首页对话
 const toSubmitNewChat = async (options) => {
-  console.log(options, 111);
   let ask_text = options.text; // 文本
   const ask_files = options.files; // 文件列表
   const action_config = options.config; //是否深度思考,是否联网,是否选择知识库
@@ -1351,13 +1310,6 @@ const sseOnMessage = (ev) => {
             mindMap_str.value = res.data.mindmap;
             mindMap_content.value = res.data.mindmap;
             mindMap_err.value = '';
-            // const last_msg = chat_new_list.value[chat_new_list.value.length - 1];
-            // last_msg.client_custom_item_mind_map = res.data.mindmap;
-            // chat_display_list.value.value.forEach(item => {
-            //   if(item.client_custom_chat_message_id === min)
-            // });
-            // chat_display_list.value.push(last_msg);
-            // console.log(chat_display_list.value, 111);
             if (!res.data.mindmap) {
               mindMap_err.value = '文本内容太少,不足以生成思维导图,请重新尝试';
             }
@@ -1509,7 +1461,6 @@ watch(
             const res_data = res.data;
             // 成功
             const session_list = res_data.message;
-            console.log(session_list, 'xxxxx');
             for (let key in session_list) {
               if (session_list[key].role == 'assistant') {
                 const res = await getHistoryMapData(session_list[key].id);
@@ -1563,7 +1514,6 @@ watch(
 );
 const getHistoryMapData = async (message_id) => {
   const res = await getMapById(message_id);
-  console.log(res);
   return res;
 };