opt: save chat ID when the chat websocket disconnect

This commit is contained in:
RockYang 2023-12-07 11:07:08 +08:00
parent 2f1c2110c6
commit e841a61bf0

View File

@ -624,6 +624,7 @@ const connect = function (chat_id, role_id) {
// //
nextTick(() => { nextTick(() => {
document.getElementById('chat-box').scrollTo(0, document.getElementById('chat-box').scrollHeight) document.getElementById('chat-box').scrollTo(0, document.getElementById('chat-box').scrollHeight)
localStorage.setItem("chat_id", chat_id)
}) })
}; };
} }