mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
97faeccebf
commit
d87a2315ce
1 changed files with 14 additions and 1 deletions
|
|
@ -182,7 +182,20 @@
|
|||
currentChatPage.set(1);
|
||||
allChatsLoaded = false;
|
||||
|
||||
await chats.set(await getChatList(localStorage.token, $currentChatPage));
|
||||
initFolders();
|
||||
await Promise.all([
|
||||
await (async () => {
|
||||
console.log('Init tags');
|
||||
const _tags = await getAllTags(localStorage.token);
|
||||
tags.set(_tags);
|
||||
})(),
|
||||
await (async () => {
|
||||
console.log('Init pinned chats');
|
||||
const _pinnedChats = await getPinnedChatList(localStorage.token);
|
||||
pinnedChats.set(_pinnedChats);
|
||||
})(),
|
||||
await (async () => {
|
||||
console.log('Init chat list');
|
||||
const _chats = await getChatList(localStorage.token, $currentChatPage);
|
||||
await chats.set(_chats);
|
||||
})()
|
||||
|
|
|
|||
Loading…
Reference in a new issue