wujingjing
2025-01-03 6e38c601192390babe9e0c2895f025750413f32b
recordSetTable 二次加载问题
已修改1个文件
7 ■■■■ 文件已修改
src/components/chat/assistant/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/assistant/index.vue
@@ -111,9 +111,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]"