mirror of
https://gitee.com/blackfox/geekai.git
synced 2025-12-08 01:38:23 +08:00
opt: save chat ID when the chat websocket disconnect
This commit is contained in:
parent
acec0194de
commit
442e411cde
@ -624,6 +624,7 @@ const connect = function (chat_id, role_id) {
|
||||
// 将聊天框的滚动条滑动到最底部
|
||||
nextTick(() => {
|
||||
document.getElementById('chat-box').scrollTo(0, document.getElementById('chat-box').scrollHeight)
|
||||
localStorage.setItem("chat_id", chat_id)
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user