wujingjing
2025-01-03 0f13cb82cd3b5fc20ed79321b8fea870db1868f8
src/components/chat/assistant/index.vue
@@ -91,18 +91,13 @@
                                                v-for="(multiChatItem, multiChatIndex) in subItem.subStep"
                                             >
                                                <component
                                                   v-if="multiChatItem.type === MultiChatType.Select"
                                                   :order="`${stepIndex + 1}-${multiChatIndex + 1}`"
                                                   :item="multiChatItem"
                                                   :is="multiChatTypeMapCom[multiChatItem.type]"
                                                   :disabled="!(stepIndex + 1 === msg?.stepGroup?.[index].value.length && isTalking && isLast)"
                                                />
                                                <component
                                                   v-else-if="multiChatItem.type === MultiChatType.Result"
                                                   :is="answerTypeMapCom['summary']"
                                                   :data="multiChatItem.data.content.values"
                                                   :originData="multiChatItem.data"
                                                />
                                             </div>
                                          </div>
                                       </template>
@@ -111,9 +106,12 @@
                                 <!-- #endregion -->
                              </div>
                              <!-- #endregion -->
                              <!-- result 时  recordSetTable 已经加载,summary 时又加载了一次,导致比例列 push 了两次
                              为了解决这个问题,等到 msg.historyId 存在时,再渲染 recordSetTable
                              -->
                              <component
                                 v-if="msg.content?.values?.[index]"
                                 v-if="msg.content?.values?.[index] && msg.historyId"
                                 :reportIndex="index"
                                 :conclusion="msg.content.values[index].conclusion"
                                 :is="answerTypeMapCom[msg.content.values[index].content.type]"