Forráskód Böngészése

初始化消息时,不再清空消息列表

xsx 1 éve
szülő
commit
557e1f6027
1 módosított fájl, 0 hozzáadás és 1 törlés
  1. 0 1
      im-uniapp/store/chatStore.js

+ 0 - 1
im-uniapp/store/chatStore.js

@@ -23,7 +23,6 @@ export default defineStore('chatStore', {
 				cacheChats.push(JSON.parse(JSON.stringify(chat)));
 				// 加载期间显示只前15个会话做做样子,一切都为了加快初始化时间
 				if (this.chats.length < 15) {
-					chat.messages = [];
 					this.chats.push(chat);
 				}
 			}