Browse Source

修复聊天列表key重复bug

xie.bx 3 năm trước cách đây
mục cha
commit
28cac466b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      im-ui/src/view/Chat.vue

+ 1 - 1
im-ui/src/view/Chat.vue

@@ -7,7 +7,7 @@
 				</el-input>
 			</div>
 			<el-scrollbar class="l-chat-list" >
-				<div v-for="(chat,index) in chatStore.chats" :key="chat.type+chat.targetId">
+				<div v-for="(chat,index) in chatStore.chats" :key="index">
 					<chat-item :chat="chat" :index="index" @click.native="handleActiveItem(index)" @del="handleDelItem(chat,index)"
 					 :active="index === chatStore.activeIndex"></chat-item>
 				</div>