improve: search bar supports bvid
This commit is contained in:
parent
91566fce83
commit
1346700c35
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user