瀏覽代碼

修复聊天列表key重复bug

xie.bx 3 年之前
父節點
當前提交
28cac466b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>