@@ -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"
@@ -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$$
// 通过两次替换,字符串只剩下序号
@@ -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
});
@@ -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();