mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
refac
This commit is contained in:
parent
c40ea7f29d
commit
8e82f0d239
1 changed files with 5 additions and 0 deletions
|
|
@ -158,6 +158,7 @@
|
|||
|
||||
if (version !== null) {
|
||||
WEBUI_VERSION.set(version);
|
||||
window.WEBUI_VERSION = version;
|
||||
}
|
||||
|
||||
console.log('version', version);
|
||||
|
|
@ -709,6 +710,10 @@
|
|||
await goto(event.data.path);
|
||||
return;
|
||||
}
|
||||
if (event.type === 'query' && event.data?.query) {
|
||||
await goto(`/?q=${encodeURIComponent(event.data.query)}`);
|
||||
return;
|
||||
}
|
||||
if (event.type === 'models:refresh') {
|
||||
const token = localStorage.token;
|
||||
if (token) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue