feat: optimize setup form (#960)

This commit is contained in:
YetAnotherZephyruso 2024-08-29 19:17:29 +08:00 committed by GitHub
parent ad8dee32e9
commit 00ab6d4645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,12 +152,15 @@ export default () => {
name="url"
type="url"
class="input input-bordered w-full"
placeholder="http://127.0.0.1:9090"
placeholder="http(s)://{hostname}:{port}"
list="defaultEndpoints"
/>
<datalist id="defaultEndpoints">
<option value="http://127.0.0.1:9090" />
<Show when={window.location.origin !== 'http://127.0.0.1:9090'}>
<option value={window.location.origin} />
</Show>
</datalist>
</div>