mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 04:03:42 +08:00
优化聊天样式
This commit is contained in:
@@ -85,3 +85,11 @@ export function setChat(chat) {
|
||||
chatList[chat.id] = chat;
|
||||
Storage.set(ChatListKey, chatList);
|
||||
}
|
||||
|
||||
export function removeChat(chatId) {
|
||||
const chatList = Storage.get(ChatListKey);
|
||||
if (chatList) {
|
||||
delete chatList[chatId];
|
||||
Storage.set(ChatListKey, chatList);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user