优化缓存命中

This commit is contained in:
2026-07-29 10:23:01 +08:00
parent de2de85e58
commit 6a768ef146
3 changed files with 13 additions and 2 deletions

View File

@@ -19,6 +19,8 @@ function initWebSocket() {
const room = Store.rooms.find(r => r.id === data.room_preview.room_id);
if (room) { room.last_message = data.room_preview.last_message; room.last_time = data.room_preview.last_time; renderChatList(); }
}
} else if (data.type === 'query_pending') {
if (Store.currentRoom === roomId) showTempBubble(data.text);
} else if (data.type === 'purchase_updated') {
if (Store.currentRoom) loadPurchases();
updateSummaryPreview();