wujingjing
2024-12-04 ff6a80d401f6332af697dd9a746e66ce10be03a0
src/components/chat/Chat.vue
@@ -173,12 +173,17 @@
                                    </template>
                                    <!-- #endregion -->
                                 </template>
                                 <!-- #endregion -->
                                 <!-- #region ====================== 附加内容 ======================-->
                                 <!-- #region ====================== 停止 ======================-->
                                 <span v-if="item.isStopMsg && item?.role === RoleEnum.assistant" class="text-gray-400 text-[12px]"
                                    >(已停止)</span
                                 >
                                 <!-- parseContent 返回为 null -->
                                 <p v-if="!item.content && !isTalking && !item.isStopMsg" class="text-red-500">
                                    暂无数据
                                 </p>
                                 <!-- #endregion -->
                                 <!-- #endregion -->
                              </div>
@@ -343,6 +348,7 @@
import emitter from '/@/utils/mitt';
import { ErrorCode } from '/@/utils/request';
import { toMyFixed } from '/@/utils/util';
import { loadAmisSource } from '../amis/load';
const chatWidth = '75%';
const voicePageIsShow = ref(false);
let isTalking = ref(false);
@@ -547,7 +553,6 @@
            if (chunkRes.mode === 'finish') {
               stepList.at(-1).ms = ms;
               isTalking.value = false;
               return;
            }
@@ -576,6 +581,8 @@
   });
   questionRes = await resultP;
   isTalking.value = false;
   const content = parseContent(res, true);
   return content;
};
@@ -736,6 +743,7 @@
         }, 300);
      }
   }
   loadAmisSource()
});
//#region ====================== 关联查询 ======================
const relativeQueryClick = async (val) => {