mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
Compare commits
3 commits
f069a58041
...
aed6d1955b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aed6d1955b | ||
|
|
ae47101dc6 | ||
|
|
7c08ce2217 |
2 changed files with 8 additions and 3 deletions
|
|
@ -339,7 +339,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody class="">
|
||||
{#each users as user, userIdx}
|
||||
{#each users as user, userIdx (user.id)}
|
||||
<tr class="bg-white dark:bg-gray-900 dark:border-gray-850 text-xs">
|
||||
<td class="px-3 py-1 min-w-[7rem] w-28">
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -68,20 +68,25 @@
|
|||
let models = null;
|
||||
let total = null;
|
||||
|
||||
let searchDebounceTimer;
|
||||
|
||||
$: if (
|
||||
page !== undefined &&
|
||||
query !== undefined &&
|
||||
selectedTag !== undefined &&
|
||||
viewOption !== undefined
|
||||
) {
|
||||
getModelList();
|
||||
clearTimeout(searchDebounceTimer);
|
||||
searchDebounceTimer = setTimeout(() => {
|
||||
getModelList();
|
||||
}, 300);
|
||||
}
|
||||
|
||||
const getModelList = async () => {
|
||||
try {
|
||||
const res = await getWorkspaceModels(
|
||||
localStorage.token,
|
||||
query,
|
||||
query.slice(0, 500),
|
||||
viewOption,
|
||||
selectedTag,
|
||||
null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue