wujingjing
2025-01-06 0a7a0ccec1501e6b92a3be5567eb26b498cb6d67
src/components/chat/assistant/index.vue
@@ -91,13 +91,12 @@
                                                v-for="(multiChatItem, multiChatIndex) in subItem.subStep"
                                             >
                                                <component
                                                   :order="`${stepIndex + 1}-${multiChatIndex + 1}`"
                                                   :item="multiChatItem"
                                                   :is="multiChatTypeMapCom[multiChatItem.type]"
                                                   @change="multiChatChange"
                                                   :disabled="!(stepIndex + 1 === msg?.stepGroup?.[index].value.length && isTalking && isLast)"
                                                />
                                             </div>
                                          </div>
                                       </template>
@@ -110,7 +109,6 @@
                              为了解决这个问题,等到 msg.historyId 存在时,再渲染 recordSetTable
                              -->
                              <component
                                 v-if="msg.content?.values?.[index] && msg.historyId"
                                 :reportIndex="index"
                                 :conclusion="msg.content.values[index].conclusion"
@@ -235,6 +233,7 @@
import { multiChatTypeMapCom } from '/@/components/chat/chatComponents/multiChat';
import { isSharePage } from '/@/stores/chatRoom';
import { ErrorCode } from '/@/utils/request';
import { question_stream_reply } from '/@/api/ai/chat';
const props = defineProps({
   /** @description 当前消息 */
@@ -293,6 +292,14 @@
   emit('shareMsg', item);
};
//#endregion
const multiChatChange = async (replyId: string, val: any) => {
   const res = await question_stream_reply({
      start_time: val.start_time,
      end_time: val.end_time,
      reply_id: replyId,
   });
};
</script>
<style scoped lang="scss">
pre {