perf(agent): 为历史对话项添加 key 属性
- 在 history-item 组件中添加 :key="index",以优化渲染性能
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
<div class="section">
|
||||
<div class="text">历史对话</div>
|
||||
</div>
|
||||
<div class="history-item" v-for="(item, index) in history">
|
||||
<div class="history-item" v-for="(item, index) in history" :key="index">
|
||||
<div class="item-body">
|
||||
<div class="text ellipsis-title" @click="getHistoryInfo(item)">
|
||||
{{ item.title }}
|
||||
|
||||
Reference in New Issue
Block a user