mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 22:05:19 +00:00
enh: submit searchParam
This commit is contained in:
parent
e28bc37e41
commit
1b237c7f60
1 changed files with 4 additions and 2 deletions
|
|
@ -836,10 +836,12 @@
|
|||
prompt = $page.url.searchParams.get('q') ?? '';
|
||||
|
||||
if (prompt) {
|
||||
if (($page.url.searchParams.get('submit') ?? 'true') === 'true') {
|
||||
await tick();
|
||||
submitPrompt(prompt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
selectedModels = selectedModels.map((modelId) =>
|
||||
$models.map((m) => m.id).includes(modelId) ? modelId : ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue