forked from open-webui/open-webui
fix: new chat load
This commit is contained in:
parent
e116016543
commit
6a2c1600f5
5 changed files with 37 additions and 21 deletions
|
@ -1,4 +1,6 @@
|
|||
<script lang="ts">
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import { goto, invalidateAll } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
import { user, db, chats, showSettings, chatId } from '$lib/stores';
|
||||
|
@ -168,8 +170,10 @@
|
|||
<div class="px-2.5 flex justify-center space-x-2">
|
||||
<button
|
||||
class="flex-grow flex justify-between rounded-md px-3 py-1.5 my-2 hover:bg-gray-900 transition"
|
||||
on:click={() => {
|
||||
location.href = '/';
|
||||
on:click={async () => {
|
||||
goto('/');
|
||||
|
||||
await chatId.set(uuidv4());
|
||||
// createNewChat();
|
||||
}}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue