mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-26 22:49:41 -05:00
refac
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user