mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
f0447b24ab
commit
ad8c8da438
1 changed files with 7 additions and 4 deletions
|
|
@ -139,12 +139,15 @@
|
||||||
{percentage.toFixed(2)}%
|
{percentage.toFixed(2)}%
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if typeof document?.distance === 'number'}
|
||||||
<span class="text-gray-500 dark:text-gray-500">
|
<span class="text-gray-500 dark:text-gray-500">
|
||||||
({(document?.distance ?? 0).toFixed(4)})
|
({(document?.distance ?? 0).toFixed(4)})
|
||||||
</span>
|
</span>
|
||||||
{:else}
|
{/if}
|
||||||
|
{:else if typeof document?.distance === 'number'}
|
||||||
<span class="text-gray-500 dark:text-gray-500">
|
<span class="text-gray-500 dark:text-gray-500">
|
||||||
{(document?.distance ?? 0).toFixed(4)}
|
({(document?.distance ?? 0).toFixed(4)})
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue