mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-23 21:35:36 +08:00
feat: optimize setup form (#960)
This commit is contained in:
parent
ad8dee32e9
commit
00ab6d4645
@ -152,12 +152,15 @@ export default () => {
|
|||||||
name="url"
|
name="url"
|
||||||
type="url"
|
type="url"
|
||||||
class="input input-bordered w-full"
|
class="input input-bordered w-full"
|
||||||
placeholder="http://127.0.0.1:9090"
|
placeholder="http(s)://{hostname}:{port}"
|
||||||
list="defaultEndpoints"
|
list="defaultEndpoints"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<datalist id="defaultEndpoints">
|
<datalist id="defaultEndpoints">
|
||||||
<option value="http://127.0.0.1:9090" />
|
<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>
|
</datalist>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user