refactor: 将 RuoYi 标记替换为 HZHub
This commit is contained in:
@@ -61,7 +61,7 @@ function onAfterLeave() {
|
||||
<div class="left-section">
|
||||
<div class="logo-wrap">
|
||||
<img :src="logoPng" class="logo-img">
|
||||
<span class="logo-text">RuoYi-AI</span>
|
||||
<span class="logo-text">HZHub-AI</span>
|
||||
</div>
|
||||
<div class="ad-banner">
|
||||
<SvgIcon name="p-bangong" class-name="animate-up-down" />
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useUserStore } from '@/stores';
|
||||
const greeting = useTimeGreeting();
|
||||
const userStore = useUserStore();
|
||||
|
||||
const username = computed(() => userStore.userInfo?.username ?? '我是 RuoYi-AI智能助手');
|
||||
const username = computed(() => userStore.userInfo?.username ?? '我是 HZHub-AI智能助手');
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -211,7 +211,7 @@ function handleMenuCommand(command: string, item: ConversationItem<ChatSessionVo
|
||||
<div v-if="!designStore.isCollapse" class="aside-header">
|
||||
<div class="flex items-center gap-8px hover:cursor-pointer" @click="handleCreatChat">
|
||||
<el-image :src="logo" alt="logo" fit="cover" class="logo-img" />
|
||||
<span class="logo-text max-w-150px text-overflow">RuoYi-AI</span>
|
||||
<span class="logo-text max-w-150px text-overflow">HZHub-AI</span>
|
||||
</div>
|
||||
<Collapse class="ml-auto" />
|
||||
</div>
|
||||
|
||||
@@ -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