modify: 短链和密码修改为后端生成

This commit is contained in:
hz
2025-03-08 19:02:23 +08:00
parent 88d8653ab5
commit 2331cd4d18
3 changed files with 80 additions and 21 deletions

View File

@ -147,13 +147,13 @@
<div class="form-group mb-5">
<label for="apiLink">配置链接:</label>
<div class="input-group mb-2">
<input class="form-control" id="apiLink" type="text" placeholder="链接" />
<input class="form-control bg-light" id="apiLink" type="text" placeholder="链接" readonly style="cursor: not-allowed;" />
<button class="btn btn-primary" onclick="copyToClipboard('apiLink',this)" type="button">
复制链接
</button>
</div>
<div class="input-group mb-2">
<input class="form-control" id="customId" type="text" placeholder="自定义ID可选" />
<input class="form-control" id="customId" type="text" placeholder="短链ID可选" />
<input class="form-control" id="password" type="text" placeholder="密码(可选)" />
<button class="btn btn-primary" onclick="generateShortLink()" type="button">
生成短链