forked from open-webui/open-webui
feat: delete idb after migration
This commit is contained in:
parent
e2a5964842
commit
d78df83453
3 changed files with 21 additions and 19 deletions
|
@ -49,15 +49,6 @@
|
|||
await deleteChatById(localStorage.token, id);
|
||||
await chats.set(await getChatList(localStorage.token));
|
||||
};
|
||||
|
||||
// const deleteChatHistory = async () => {
|
||||
// await $db.deleteAllChat();
|
||||
|
||||
// const tx = this.db.transaction('chats', 'readwrite');
|
||||
// await Promise.all([tx.store.clear(), tx.done]);
|
||||
|
||||
// await chats.set(await this.getChats());
|
||||
// };
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue