improve: search bar supports bvid

This commit is contained in:
alikia2x (寒寒) 2025-03-30 08:02:36 +08:00
parent 91566fce83
commit 1346700c35
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
2 changed files with 2 additions and 8 deletions

View File

@ -16,9 +16,7 @@
const input = event.target as HTMLInputElement;
const value: string = input.value.trim();
if (!value) return;
if (value.startsWith("av")) {
window.location.href = `/song/${value}/info`;
}
window.location.href = `/song/${value}/info`;
}
}
</script>

View File

@ -137,11 +137,7 @@ interface Snapshot {
<td class="border px-4 py-2">{videoInfo?.created_at ? format(new Date(videoInfo.created_at), 'yyyy-MM-dd HH:mm:ss', { locale: zhCN }) : '-'}</td>
</tr>
<tr>
<td class="border px-4 py-2 font-bold">状态</td>
<td class="border px-4 py-2">{videoInfo?.status}</td>
</tr>
<tr>
<td class="border px-4 py-2 font-bold">封面 URL</td>
<td class="border px-4 py-2 font-bold">封面</td>
<td class="border px-4 py-2">{videoInfo?.cover_url ? videoInfo.cover_url : '-'}</td>
</tr>
</tbody>