Sfoglia il codice sorgente

feat:修复bug,知识库问答中引用问题,知识库无法下载文件问题,首页输入框无法清除问题

hanyang 1 anno fa
parent
commit
5016e5e4cd

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

@@ -9,7 +9,7 @@
           ref="chat_input_textarea"
           class="chat-textarea-input"
           :placeholder="$t('conversation.input_placholder')"
-          :model-value="input_text_value"
+          v-model="input_text_value"
           allow-clear
           :auto-size="textarea_size_config"
           @input="handleTextInput"

+ 1 - 1
src/modules/conversation-dialog/format-dialog-answer-custom-markdown-str.js

@@ -51,7 +51,7 @@ export function formatRefferenceFlag(answer) {
 
   let cur_text = answer;
 
-  cur_text = cur_text.replace(/##\d\$\$/g, function (match, index, full) {
+  cur_text = cur_text.replace(/##\d{1,}\$\$/g, function (match, index, full) {
     // console.log(match, index, full);
     // match示例数据 ##1$$ ##2$$
     // 通过两次替换,字符串只剩下序号

+ 1 - 1
src/modules/knowledge/rgflow/knowledgeLib/index.vue

@@ -733,7 +733,7 @@ const deleteItem = async (row) => {
 };
 const onDownloadDocument = async (record) => {
   await downloadFile({
-    url: `/api/v1/document/get/${record.id}`,
+    url: `/rgflow/v1/document/get/${record.id}`,
     filename: record.name
   });
 };

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

@@ -1367,7 +1367,6 @@ const sseOnMessage = (ev) => {
   if (res_data.message_id) {
     minMap_messageId.value = res_data.message_id;
   }
-
   //sse流式结束
   if (res_data.event === 'message_end') {
     stopStream();