refactor: 将 RuoYi 标记替换为 HZHub
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<!-- 默认消息列表页 -->
|
||||
<script setup lang="ts">
|
||||
import type { FilesCardProps } from 'vue-element-plus-x/types/FilesCard';
|
||||
import type { AnyObject } from 'typescript-api-pro';
|
||||
import { nextTick, onMounted, ref, watch } from 'vue';
|
||||
import { Sender } from 'vue-element-plus-x';
|
||||
import { getKnowledgeList, getWorkflowList } from '@/api/chat';
|
||||
|
||||
@@ -10,7 +10,7 @@ import { nextTick } from 'vue';
|
||||
import { Sender } from 'vue-element-plus-x';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { send } from '@/api';
|
||||
import { getKnowledgeList } from '@/api/chat';
|
||||
import { getKnowledgeList, getWorkflowList } from '@/api/chat';
|
||||
import FilesSelect from '@/components/FilesSelect/index.vue';
|
||||
import ModelSelect from '@/components/ModelSelect/index.vue';
|
||||
import { useChatStore } from '@/stores/modules/chat';
|
||||
@@ -351,7 +351,7 @@ async function startSSE(chatContent: string) {
|
||||
})) {
|
||||
// 处理数据块 - chunk.result 可能是字符串或对象
|
||||
// 返回 true 表示流结束
|
||||
if (handleDataChunk(chunk.result)) {
|
||||
if (handleDataChunk(chunk.result as AnyObject | string)) {
|
||||
break; // 提前结束流处理
|
||||
}
|
||||
// 等待 Vue 更新 DOM,实现真正的流式渲染
|
||||
|
||||
Reference in New Issue
Block a user