gerson
2025-03-02 0395ae2cf0acc698db8d2cd94e808fae9b0f74bf
src/components/chat/assistant/index.vue
@@ -52,12 +52,20 @@
                                    :title="subItem.title"
                                    :status="stepEnumMap[subItem.status]"
                                 >
                                    <template #icon v-if="stepIndex + 1 === msg?.stepGroup?.[index].value.length && isTalking && isLast&&(subItem.finishLoading===false || subItem.finishLoading===undefined)">
                                    <template
                                       #icon
                                       v-if="
                                          stepIndex + 1 === msg?.stepGroup?.[index].value.length &&
                                          isTalking &&
                                          isLast &&
                                          (subItem.finishLoading === false || subItem.finishLoading === undefined)
                                       "
                                    >
                                       <span class="ywifont ywicon-loading1 animate-spin !text-[24px]"></span>
                                    </template>
                                    <template #title>
                                       <span class="">
                                          {{ subItem.title }}
                                          <span v-html="md.render(subItem.title)"></span>
                                          <span v-if="subItem.ms" class="text-green-600">{{ `(${subItem.ms})` }}</span></span
                                       >
@@ -88,7 +96,7 @@
                              为了解决这个问题,等到 msg.historyId 存在时,再渲染 recordSetTable
                              -->
                           <component
                              v-if="msg.content?.values?.[index]  && msg.content?.errCode !== ErrorCode.Message"
                              v-if="msg.content?.values?.[index]"
                              :reportIndex="index"
                              :conclusion="msg.content.values[index].conclusion"
                              :is="answerTypeMapCom[msg.content.values[index].content.type]"
@@ -139,7 +147,9 @@
                  <!-- #region ====================== 停止 ======================-->
                  <span v-if="msg.isStopMsg && msg?.role === RoleEnum.assistant" class="text-gray-400 text-[12px]">(已停止)</span>
                  <!-- parseContent 返回为 null -->
                  <p v-if="!msg.content && !isTalking && !msg.isStopMsg && msg.content?.errCode !== ErrorCode.Message" class="text-red-500">暂无数据</p>
                  <p v-if="!msg.content && !isTalking && !msg.isStopMsg && msg.content?.errCode !== ErrorCode.Message" class="text-red-500">
                     暂无数据
                  </p>
                  <!-- #endregion -->
                  <!-- #endregion -->
               </div>
@@ -240,6 +250,7 @@
import { isSharePage } from '/@/stores/chatRoom';
import { ErrorCode } from '/@/utils/request';
import { question_stream_reply } from '/@/api/ai/chat';
import { md } from '/@/components/chat/libs/markdown';
const props = defineProps({
   /** @description 当前消息 */