forked from open-webui/open-webui
fix: initNewChat
This commit is contained in:
parent
8f2b691ee0
commit
cc9e299814
2 changed files with 3 additions and 1 deletions
2
run.sh
2
run.sh
|
@ -1,5 +1,5 @@
|
||||||
docker stop ollama-webui || true
|
docker stop ollama-webui || true
|
||||||
docker rm ollama-webui || true
|
docker rm ollama-webui || true
|
||||||
docker build -t ollama-webui .
|
docker build -t ollama-webui .
|
||||||
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app --name ollama-webui --restart always ollama-webui
|
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app/backend --name ollama-webui --restart always ollama-webui
|
||||||
docker image prune -f
|
docker image prune -f
|
|
@ -64,6 +64,8 @@
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
||||||
const initNewChat = async () => {
|
const initNewChat = async () => {
|
||||||
|
window.history.replaceState(history.state, '', `/`);
|
||||||
|
|
||||||
console.log('initNewChat');
|
console.log('initNewChat');
|
||||||
|
|
||||||
await chatId.set('');
|
await chatId.set('');
|
||||||
|
|
Loading…
Reference in a new issue