mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
Merge 8f391131c5 into 4ef7e35b88
This commit is contained in:
commit
b9888b9ae5
1 changed files with 4 additions and 5 deletions
|
|
@ -52,8 +52,10 @@
|
|||
if (await loadSharedChat()) {
|
||||
await tick();
|
||||
loaded = true;
|
||||
} else {
|
||||
} else if (localStorage.token) {
|
||||
await goto('/');
|
||||
} else {
|
||||
await goto(`/auth?redirect=${encodeURIComponent($page.url.pathname)}`);
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
|
@ -102,10 +104,7 @@
|
|||
: []
|
||||
);
|
||||
await chatId.set(shareId);
|
||||
chat = await getChatByShareId(token, shareId).catch(async (error) => {
|
||||
await goto('/');
|
||||
return null;
|
||||
});
|
||||
chat = await getChatByShareId(token, shareId).catch(() => null);
|
||||
|
||||
if (chat) {
|
||||
user = token
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue